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 |
Tell me how to executed jquery selectors? : jquery mobile
Explain the difference between size and length of jquery?
How to programmatically trigger a click event thats being handled by jquery only?
Why we use jquery .each() function?
Explain is jquery replacement of java script? : jquery mobile
How to concatenate two strings using jquery?
What are the different type of selectors in jquery?
How do I check if the DOM is ready?
How can we add change font size using jquery?
How can we apply css in last child of parent using jquery library?
Which one is more efficient, document.getElementbyId( "myId") or $("#myId)?
Differentiate the concepts of .js and .min.js?