.hasClass()
methodThe .hasClass(className)
method in jQuery is used to check if the matched elements have class className
.
It is equivalent to $.is("."+className)
.
.hasClass()
method Syntax$.hasClass(className)
the className
is class name to search for.