Reputation: 11641
$('img, div.name < *')
Only returns the first children but i need all of them. I can do it in two statements, but i need to do it in one since i want to :not the expression.
:not ( $('div.name').children() + $('img') )
Is what i'm trying to achieve. Thanks!
Upvotes: 1
Views: 2241
Reputation: 63562
If you're trying to select descendants, not just direct children, use *
$('img, div.name *')
>
will only get you the direct children of that object, but it might not matter
Upvotes: 0