switchClass -


未知
未知

软件简介

This VERY simple plugin provides functionality similar to jQuery’s built in
toggleClass() function, but instead of adding/removing a single class from an
element, switchClass toggles between TWO classes ensuring that one and only
one of the two classes is assigned to an element (or elements) at one time. It
leaves all other element classes untouched and only affects the two classes
specified.

In practical terms, one example usage would be for toggling a table row’s
class from “odd” to “even” classes after a row has been deleted.