Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
5+3 =