Is there a more effective alternative to rewriting the following code snippet?
$('element').removeClass('class1').removeClass('class2');
I am unable to utilize removeClass();
because it would eliminate ALL classes, and that is not my desired outcome.