Answers for "check if does not have class jquery"

CSS
1

has not class jquery

if (!$(this).hasClass("test")) {
Posted by: Guest on March-01-2021
1

jquery check if a class exists

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

Code answers related to "check if does not have class jquery"

Browse Popular Code Answers by Language