jQuery unwrap()Method
Example
Remove the parent element of all <p> elements:
$("button").click(function(){
$("p").unwrap();
});
Try it Yourself »
Definition and Usage
The unwrap() method removes the parent element of the selected elements.
Syntax
$(selector).unwrap()
More Examples
Wrap and unwrap elements
How to switch between the tasks of wrapping and unwrapping elements.
Other extensions
jQuery HTML/CSS Methods