is it possible to do this in JQuery:
<div>
<h2>Test test</h2>
<span class="test">
HELOOOO
</span>
</div>
If I have the above code stored in variable (eg: var content), is there any function to call that returns me the original content without some specific element? Something like var content = content.remove('.test')
<div>
<h2>Test test</h2>
</div>
and this should be the returned value?