How do I remove a class from an element? I see in the documentation there's an $().swapClass(), but I don't see a $().removeClass().
1 Answer
There is indeed a removeClass(). Just call it on any element selector:
$('element').removeClass(className);
1 Comment
hamczu
This function has some problems when working with multiple classes - it works correctly only when classes names are passed in the same order as they are in the element.