Is there a way to get the deepest element matching a contains statement?
Basicly if I have nested divs, I want the last element not the parent element:
<div id="hayStack">
<div id="needle">Needle</div>
</div>
$("div:contains('Needle')")
is returning the hayStack div.
The only solution I have come up with so far is explicitly exlcuding parent divs by their id with .not