> > $(this).children("span").children("a").html("it works");
> I would have chosen the following
> $("span a",this).html("it works");

I think that isn't quite the same thing. In the following, your
suggestion would match 3 anchors, and the OP's would just match the
first one:

<div id="container">
  <span><a href="...">...</a></span>
  <div><span><a href="...">...</a></span></div>
  <span><div><a href="...">...</a></div></span>
</div>

--Erik

Reply via email to