Latest web development tutorials

jQuery unwrap () method

jQuery HTML / CSS Methods jQuery HTML / CSS Methods

Examples

Remove all of the parent element <p> element:

$("button").click(function(){
$("p").unwrap();
});

try it"

Definition and Usage

unwrap () method to remove the selected elements of the parent element.


grammar

$(selector).unwrap()


Examples

More examples

Parcels and unlock elements
How to unlock the elements between packages and task switching.


jQuery HTML / CSS Methods jQuery HTML / CSS Methods