Reputation: 121
i am trying to prevent all elements within a div from being selected. this is not working.
$('*').not('#someid > *')
Upvotes: 0
Views: 273
Reputation: 25147
The only problem with your approach is that you're asking for immediate children. If you remove the >
it should work fine:
$('*').not('#someid *');
Upvotes: 1