레퍼런스 hasClass()

hasClass()

Checks if a class is already applied to element.

예제

구문

hasClass(c)

매개변수

c
{String} name of class to check.

반환값

boolean: a boolean value if element has specified class.

관련 레퍼런스