Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get attributes of an element using jQuery?

775


Which are the fastest selectors in jquery? : jquery mobile

724


How to use it jquery knockout?

787


How to find all sibling elements after the current element using ?

773


How to add and remove css classes to an element using ?

783


Why do we need to go for JQuery?

757


Explain the difference between parent() and parents() methods in jquery? : jquery mobile

773


How to stop jqm from auto-enhancing an element? : jquery mobile

728


Difference between document.ready() and body onload()?

772


Explain all the ways to include jquery in a page?

766


Define the use jquery.data method?

768


What is the minimum setup needed to start using jquery.

811


Explain the use of jquery .each() function? : jquery mobile

782


What is the difference between map and grep function in jquery?

836


How do you disable or enable a form element?

747