Should I use .find(".foo .bar") or .children(".foo").children(".bar")?
Posted
by Richard Ev
on Stack Overflow
See other posts from Stack Overflow
or by Richard Ev
Published on 2010-05-27T11:14:07Z
Indexed on
2010/05/27
11:21 UTC
Read the original article
Hit count: 126
jQuery
|dom-traversal
When using jQuery for DOM traversal both of these return the same results (I believe):
$("whatever").find(".foo .bar")
$("whatever").children(".foo").children(".bar")
Which is preferable to use?
© Stack Overflow or respective owner