Return to Snippet

Revision: 30846
at August 24, 2010 00:46 by reynish


Initial Code
if ($(#elm).is('.first')) {
//#elm has the class
} else {
//#elm doesn't have the class
}

Initial URL
http://www.kavoir.com/2009/04/jquery-how-to-check-if-an-element-has-a-particular-class.html

Initial Description
Found this, very useful

Initial Title
if element has class

Initial Tags


Initial Language
jQuery