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?
var p = $("li:last").not(".Class");
http://api.jquery.com/not/
1.4m articles
1.4m replys
5 comments
57.0k users