contains( )
Indicates whether the element's class list contains a specified custom CSS class.
Returns true
if the element contains the class.
Method Declaration
Copy
Method Parameters
classNamestringRequired
Custom class to check.
Returns
Return Type:boolean
Was this helpful?
Yes
No