I have the following HTML structure:
<div class="s1>
<div class="s2">
<span class="span1">
<span>text</span>
</span>
</div>
</div>
Currently I am selecting the most nested span with the following selectors:
$(".s1").find(">:first-child").find(">first:child").find(">:first-child")
Is there a more efficient way to select that inner span?
Edit: Div with class s1 is already cached, so I cant use $(“selector”).
You can access it through span1 class,