In jQuery, is $('li.item-ii').find('li') the same as $('li.item-ii li')?

Posted by Jian Lin on Stack Overflow See other posts from Stack Overflow or by Jian Lin
Published on 2010-06-18T02:22:13Z Indexed on 2010/06/18 2:23 UTC
Read the original article Hit count: 340

Filed under:
|

In the example of jQuery's find()
(the doc is at http://api.jquery.com/find/)

Is

$('li.item-ii').find('li')

the same as

$('li.item-ii li')

essentially, all the <li> elements inside the <li> element that has the class item-ii

Similarly

$('#id1').find(".class1 #id2")

is the same as

$('#id1 .class1 #id2")

?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors