/ Published in: jQuery
                    
                                        Found this, very useful
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 if ($(#elm).is('.first')) { //#elm has the class } else { //#elm doesn't have the class }
URL: http://www.kavoir.com/2009/04/jquery-how-to-check-if-an-element-has-a-particular-class.html
Comments
                    Subscribe to comments
                
                