Answers for "how to remove an element class jquery"

7

javascript remove css class

//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");
Posted by: Guest on July-31-2019
-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 "how to remove an element class jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language