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