jQuery .class Selector
jQuery .class Selector
The .class selector is used to select all elements with the specific class. It refers to the class attribute of an HTML element. It is used to set a particular style for several HTML elements.
Syntax:-
Its syntax is $(".class");
Further Explanation:-
Parameter | Description |
---|---|
class | Required. Specifies the class of the elements to select |