hasClass Function

Returns "true" if the node has the specified class applied.

Summary

ElementFunction
ReturnsBoolean

Arguments

cssString[required] Class to search for.

Example

handler.hasClass('my-class');