How can I remove the foo label
as well as the div
child element and the br
's?
<label>qux</label>
<label>foo</label><div id="block">text</div><br /><br />
<label>bar</label>
My current makeshift method:
$('label:contains("foo")').next().remove();
$('label:contains("foo")').remove();
How can I improve upon this?