toggleClass Function

Removes the specified class if it exists or adds it if it does not. Returns the handler.

Summary

ElementFunction
ReturnsObject

Arguments

cssString[required] Class to remove from or add to the node.

Example

handler.toggleClass('switch-class');
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/njsorg/public_html/pagetype/content/pages/en/docml.viewer.php