jQuery hasClass()

The jQuery hasClass() method checks whether the selected elements have specified class names or not. Return Value: TRUE:  If the specified class is present in any of the selected elements. FALSE. If the specified class is not present in any of the selected elements. Syntax: $(selector).hasClass(classname) Classname: Classname is a compulsory parameter of the jQuery … Read more