SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the .not() method or :not() selector
.not()
:not()
Code based on your example:
$("ul#list li").not(".active") // not method $("ul#list li:not(.active)") // not selector