Answers for "jquery if page has class"

CSS
0

jquery check if has class

if ($("#about").hasClass("opened")) {
  $("#about").animate({right: "-700px"}, 2000);
}
Posted by: Guest on November-06-2021
0

how to find a name of class from page in jquery

if ($('.Mandatory').length > 0) {
  //do your thing
}
Posted by: Guest on October-17-2020

Browse Popular Code Answers by Language