jquery remove class from all elements and add back to one code example
Example 1: jquery remove multiple class
$("p").removeClass("blue under");
Example 2: jquery remove class
$("#div1").on("click", function () {
if ($(this).hasClass("active")) {
setTimeout(function () {
$("#div1").removeClass("active");
}, 10);
}
});