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.
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 ...
.toggleClass( [boolean] ) is inaccurately documented, (probably) not working correctly, easy to manually implement by library consumers, and I can't even come up with a reasonable use case calling for ...