jQuery HTML/CSS Methods
Remove the parent element of all <p> elements:
The unwrap() method removes the parent element of the selected elements.
Wrap and unwrap an element How to toggle between wrapping and unwrapping an element.