Just wondering how to write this if:
if ( $(".someDiv").css("pointer-events") != "none" && $elem.hasClass("someClass")) {
// do something
}
Basically, I want to be able to do something if both components of the if are met. Not sure how to use the brackets inside the if, on either side of the &&.
Thanks.
Aucun commentaire:
Enregistrer un commentaire