Answers for "which method is used to remove the class using jquery?"

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
2

add and remove class in jquery

$('#toggle li').on('click', function () {
    $(this).toggleClass('open')
});
Posted by: Guest on June-04-2020

Code answers related to "which method is used to remove the class using jquery?"

Browse Popular Code Answers by Language