Answers for "how to remove div in jquery using class name"

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
0

jquery body remove class

$("body").removeClass("modal-open");
Posted by: Guest on December-22-2021

Code answers related to "how to remove div in jquery using class name"

Browse Popular Code Answers by Language