Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Pro

jQuery unwrap() Method

❮ jQuery HTML/CSS Methods


Remove the parent element of all <p> elements:

Try it Yourself »

Definition and Usage

The unwrap() method removes the parent element of the selected elements.



Try it Yourself - Examples

Wrap and unwrap an element
How to toggle between wrapping and unwrapping an element.

❮ jQuery HTML/CSS Methods