Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
class-exists
Checks if the selected element has a specific CSS class
Parameter
Type
Description
name
string
The name of the CSS class to check for
return
bool
Returns true if the element has the class, false otherwise