Does anyone know this? or can tell where I’m missing?
this instruction works (only one selector in :not filter)
ie:
$('#menuStato > li > a').find('+ ul > li:not(.toggleMenuActions)')
when I use the :not filter with two or more class selector inside separated by ',' on a selector that start with '+' in a find function
the result is an empty array
ie:
$('#menuStato > li > a').find('+ ul > li:not(.toggleMenuActions, .toggleMenuFooter, .nascosto)')
The same instruction written like the follow works… (I just moved the ' > a ' from the fist brackets to the second one
ie:
$('#menuStato > li').find(' > a + ul > li:not(.toggleMenuActions, .toggleMenuFooter, .nascosto)')
findshould retrieve descendents elements, while in your first selectoryou’re looking for a sibling element (that’s the reason why instead your last statement
properly works)
regards, Fabrizio.