"parent > child" selector vs .children()
"parent > child" selector vs .children()
$('div.grandparent > div.parent > div.child')
vs
$('div.grandparent').children('div.parent').children('div.child')
Is one more performant than the other? Is there any advantage of using .children()?
Thanks.
Topic Participants
flynnbox
mikebranski