Given the following HTML, which jQuery selector will select the last blah blah span , but not the first?
<div class='d1'> <span> <a>blee <span> <span>blah</span> blah </span> </a> </span> </div> <br/> <div class='d1'> <span> <a>blee <span> blah blah </span> </a> </span> </div>
I tried the options using not () but can't figure it out. It seems that I need a selector that finds the first span, but then excludes it if it contains a different range. Sort of:
$('.d1 span a span').not(':has("span")')
but it does not. What am I missing?
mix source share