Check if a jquery object has a particular class/id
Snippet
Instead of being asleep at 18:47 on 19 September 2009, kitt created this:
Use is() to check if a class exists on a jQuery element.
if ($(#elm).is('.checkthisclass')) { // #elm has the class } else { //#elm doesn't have the class }
Add new comment