Is there a way to use the .unwrap function to unwrap all instances of a specific class (in this case ‘blah’)
<div class="blah">
<a href="http://google.com">Google</a>
</div>
<div class="blah">
<span>Testing</span>
</div>
Right now, I’m using a code like this:
$('.blah a').unwrap();
But this wouldn’t unwrap the second piece of code with the span in it above.
How about
Demo at http://jsfiddle.net/gaby/KAzgq/