Is there any better way to rewrite this:
$(\'element\').removeClass(\'class1\').removeClass(\'class2\');
I cannot use removeC
removeC
$('element').removeClass('class1 class2');
Here are the docs.
$("element").removeClass("class1 class2");
From removeClass(), the class parameter:
One or more CSS classes to remove from the elements, these are separated by spaces.