0 votes
in JQuery by
What are the selectors in jQuery, and what are the types of Selectors?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Nov 20, 2020 in JQuery by sharadyadav1986
0 votes
asked Nov 17, 2020 in JQuery by rajeshsharma
...