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

Tell me how to executed jquery selectors? : jquery mobile

0 Answers  


Explain the difference between size and length of jquery?

0 Answers  


How to programmatically trigger a click event thats being handled by jquery only?

0 Answers  


Why we use jquery .each() function?

0 Answers  


Explain is jquery replacement of java script? : jquery mobile

0 Answers  






How to concatenate two strings using jquery?

0 Answers  


What are the different type of selectors in jquery?

0 Answers  


How do I check if the DOM is ready?

0 Answers  


How can we add change font size using jquery?

0 Answers  


How can we apply css in last child of parent using jquery library?

0 Answers  


Which one is more efficient, document.getElementbyId( "myId") or $("#myId)?

0 Answers  


Differentiate the concepts of .js and .min.js?

0 Answers  


Categories