Suppose I have such a structure:
<div id="content">
<div>
<span>
<b>
<i>
<u>
<span>Price</span>
</u>
</i>
</b>
</span>
</div>
</div>
In this case, the number of tags inside the div #content
and which ones they don't know me. I only have access to the id content
.
How do I get the selector to the latest span which contains the text Price?
p.s. lastChild
method returns the last child within the selected selector, but not deeper!