Reputation: 21509
How can you select using this
the direct children of the element ?
Something like $(this).find('p')
but for direct children.
Update : there is a difference between a direct children and a sibling.
Upvotes: 1
Views: 120
Reputation: 141909
>
searches the children of the given element.
$(this).find('> p');
$('> p', this);
$(this).children('p');
Upvotes: 1
Reputation: 186752
$(this).children('elementnode')
Anytime you wrap a DOM element with $
you have access to prototypal methods, and children
is one of them.
Upvotes: 1