The jQuery toggleClass() method is used to toggle between adding and removing one or more classes from the selected elements. className: A string representing one or more class names to be toggled.
One or more class names (separated by spaces) to be toggled for each element in the matched set. This method's handler can wait for timeouts and intervals to complete before invoking the callback by ...
Ryan Boudreaux continues his tutorial on getting acquainted with jQuery by showing you how to get objects by ID and Class selectors and by Tag and Attribute. In this second segment in my jQuery series ...