Answers for "jquery remove class from all elements with class in div"

CSS
1

jquery remove class

$("#div1").on("click", function () {
    if ($(this).hasClass("active")) {
      setTimeout(function () {
        $("#div1").removeClass("active");
      }, 10);
    }
  });
Posted by: Guest on November-19-2020

Code answers related to "jquery remove class from all elements with class in div"

Browse Popular Code Answers by Language