Reputation: 16420
I need a custom selector which grabs all LI's who do not have the class hiddenField and who have no ancestors with the class hiddenField
E.G
var lis= $f.find('li:not(.hiddenField)').filter('andAncestorsHaveNoClassHiddenField)
Bit stretched for me :)
Upvotes: 1
Views: 111
Reputation: 16961
$f.find("li:not('.hiddenField')").filter(function(){
return !$(this).parents().hasClass(".hiddenField");
})
Upvotes: 2