Is there any better way to rewrite this:
$('element').removeClass('class1').removeClass('class2');
I cannot use removeClass(); as it would remove ALL classes, which I don't want.
removeClass();
$("element").removeClass("class1 class2");
From removeClass(), the class parameter:
removeClass()
One or more CSS classes to remove from the elements, these are separated by spaces.
1.4m articles
1.4m replys
5 comments
57.0k users