What are selectors in jQuery and how many types of selectors are there?



What are selectors in jQuery and how many types of selectors are there?..

Answer / chaitanya

To work with an element on the web page, first we need to find them. To find the html element in jQuery we use selectors. There are many types of selectors but basic selectors are:

Name: Selects all elements which match with the given element Name.

#ID: Selects a single element which matches with the given ID

.Class: Selects all elements which match with the given Class.

Universal (*): Selects all elements available in a DOM.

Multiple Elements E, F, G: Selects the combined results of all the specified selectors E, F or G.

Attribute Selector: Select elements based on its attribute value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

What is the difference between the knockout and jquery?

0 Answers  


What is each() function in jQuery? How do you use it?

0 Answers  


What is a cdn? : jQuery Mobile

0 Answers  


Is it possible to use jquery to make ajax request? : jquery mobile

0 Answers  


Can we use jQuery to make ajax request?

2 Answers  






Is jquery library used for server scripting or client scripting?

0 Answers  


What is the use of jquery.data()?

0 Answers  


What are deferred and promise object in jQuery?

1 Answers  


Tell me how to write browser specific code using jquery? : jquery mobile

0 Answers  


What is the difference between javascript and jquery?

0 Answers  


Explain the use of the .pushstack() method.

0 Answers  


Tell me what are the slow selectors in jquery? : jquery mobile

0 Answers  


Categories