I want to do something with var p:
var p = $("li:last");
But I don't want to do anything if there is a certain Class appended. I tried :not like this:
var p = $("li:last:not(.Class)");
This doesn't work. How can I exclude .Class in my var?
question from:https://stackoverflow.com/questions/10216669/how-to-write-if-not-class-jquery-selector