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 |
How can I select 20th div with jquery?
What are two different version of jquery library? : jquery mobile
Do we need to add jQuery file in both Master and Content page?
Why is only the first page of multi page document loaded? : jquery mobile
What is method chaining in jquery?
What is ajax and how it works?
Can we select a element having a specific class in jquery ?
Which are the fastest selectors in jquery? : jquery mobile
How to check/uncheck an input in jquery?
Which version of jquery file should be used?
List a few features of jquery mobile? : jQuery Mobile
And finally, if you could give one tip to any new budding jquery ui developers, what would it be?