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 |
What does dollar sign ($) means in jQuery?
Explain the script build up by jquery?
Why we need jquery?
Need to add jQuery file in both Master and Content page?
What is the difference between $(this) and 'this' in jquery?
How do I check if the DOM is ready?
Is it possible to use our own specific character in the place of $ sign in jquery? : jquery mobile
What is the use of jQuery.data() method?
How we can select multiple elements in jquery?
Which is the latest version of jQuery library?
Do we need to add the jquery file both at the master page and content page as well?
What is jQuery plugin and what is the advantage of using plugin?