Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

if a class exists jquery

if ($(".mydivclass").length){
    // Do something if class exists
} else {
    // Do something if class does not exist
}
 
PREVIOUS NEXT
Tagged: #class #exists #jquery
ADD COMMENT
Topic
Name
2+2 =