jQuery .unwrap() removes the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
$('.target').unwrap(); |
Before script: <div class="wrapper"><div class="target">.target</div></div> After script: <div class="target">.target</div> |