To select a child node in jQuery one can use children() but also find().

For example:

$(this).children('.foo');

gives the same result as:

$(this).find('.foo');

Now, which option is fastest or preferred and why?

7 Answers
7

Leave a Reply

Your email address will not be published. Required fields are marked *