hasClass()

Checks if a class is already applied to element.

उदाहरण

सिंटैक्स

hasClass(c)

पैरामीटर्स

c
{String} name of class to check.

Returns

boolean: a boolean value if element has specified class.

संबंधित संदर्भ