Hi, I have this code: <ul> <li> <ul class="menu"> <li>...</li> </li> <li> <ul class="menu active"> <li>...</li> </li> <li> <ul class="menu"> <li>...</li> </li> </ul>
I want to set css property display:none to all the elements that are not active. I'm looking at the doc on ":not" selector, I've tried: $(':not(.active)').css({'display:none'}); But doesn't works... Where I'm doing wrong? Thank you