Currently I have some code that reads
if ( $(this).hasClass('.someclass') )
//Do Stuff here.
I know this isn't exactly kosher, but it works.
What's the proper way to go about this? How do I check for the abscence of a class?
Invert the test:
I think also that the . should not be in front of the class name. See the documentation.