Simple life, Complicated mind
Friday, November 21, 2014
How to delete parent element using jQuery
what about using
unwrap()
<div class="parent">
<p class="child">
</p>
</div>
after using - $(".child").unwrap() - it will be;
<p class="child">
</p>
http://stackoverflow.com/questions/6647736/how-to-delete-parent-element-using-jquery
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment