Using jQuery, how do I remove the #hello div below and just keep the a element within the outer div tags?
I want to go from this:
<div>
<div id="hello">
<a href="http://google.com"></a>
</div>
</div>
To this:
<div>
<a href="http://google.com"></a>
</div>
Try the unwrap function:
See http://api.jquery.com/unwrap/. Cheers!