Answers for "how to check if class added to html tag using jquery event"

CSS
0

if element has class jquery

if ($(".mydivclass")[0]){
    // Do something if class exists
} else {
    // Do something if class does not exist
}
Posted by: Guest on May-27-2021

Code answers related to "how to check if class added to html tag using jquery event"

Browse Popular Code Answers by Language