If you would like to work with an element on the web page, first you need to find or select it. Selectors find the HTML elements using jQuery.
There are many types of selectors in the jQuery library. Some basic selectors are:
Name: It is used to select all elements which match with the given element Name.
#ID: It is used to select a single element which matches with the given ID
.Class: It is used to select all elements which match with the given Class.
Universal (*): It is used to select all elements available in a DOM.
Multiple Elements E, F, G: It is used to select the combined results of all the specified selectors E, F, or G.
Attribute Selector: It is used to select elements based on its attribute value.