♦ Class Selector in jQuery
♣ Example2: Class Selector in jQuery
The class Selector selects the element with the given class attribute, there can be multiple elements with same class attributes in the same page.Below is the representation of Class Selector Syntax.
Basic Syntax
$(".demo")
Syntax Explanation:
demo : class assosciated with tag element for selection
In this example, . Example
Input:
Output: