I have HTML like this:
<div id="best">
<img src="image.jpg">
<span>title</span>
<img src="image.jpg">
<span>title</span>
<img src="image.jpg">
<span>title</span>
</div>
I want jQuery code to remove all spans. Which is best:
$('#best').find('span').remove();
or
$('#best').children('span').remove();
or
$('#best').find('span').each().remove();
or is there a better solution? Which is best?