views:

504

answers:

1

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().

+4  A: 

There is indeed a removeClass(). Just call it on any element selector:

$('element').removeClass(className);
zombat