[jQuery] How optimize $(this).children("span").children("a").html("it works");
Hello,
I'm trying to optimize this selector:
$(this).children("span").children("a").html("it works");
Because I think that these 2 .children are not "light" javascript
My HTML:
<div id="container">
<span>
<a href="#">My link</a>
</span>
</div>
I try something like $(this > "span > a").html("it works");
But it doesn't work.
I'm sure that it's a dummy question but i doesn't find by myself...
thanks for your help.