jQuery addClass()
The jQuery addClass() method adds one or more class names to the selected element. Syntax: $(selector).addClass(classname,function(index,oldclass)) Classname: Classname is a compulsory parameter of the jQuery addClass() method, as it specifies the class names to be added. Function: It is an optional parameter. The function parameter is used to return the property’s class names to be … Read more