How can I use jQuery to select an element only if it doesn\'t have any classes?
I\'m writing a page which allows the html author to override the default jQuery action by
You can use this:
if (!jQuery('li').hasClass('myClass') { do something... }