.removeClass()
Remove a classname from the selected elements, while preserving any other classnames they may have.
Syntax
neon.removeClass(string classname)
classname
The name of the classname to remove.
Requirements
This method should be executed on a selection of elements. Please see the .select() method.
Return value
This method is chainable. It returns a copy of the Neon object on which it was called.
Description
This method allows you to remove a classname from a number of elements, while preserving any other classnames they may have.
An element on a page may have a "class" attribute containing any number of classnames, separated by whitespace. You could clear this attribute by calling .removeAttribute(), but this overwrites the entire attribute, which would remove all classnames from your elements. .removeClass() allows you to remove only a single classname.
It's safe to call this on elements which do not already have the given classname.