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...

How jQuery selectors are executed?

Answer Posted / chaitanya

Your last selectors is always executed first. For example, in below jQuery code, jQuery will first find all the elements with class ".myCssClass" and after that it will reject all the other elements which are not in "p#elmID".

Hide Copy Code

$("p#elmID .myCssClass");

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to include jQuery in ASP.Net project?

871


Difference between javascript and jquery?

772


How to debug jquery code/ debug jquery?

830


How do you install/use jquery in a project.

788


How to get the value of selected option in jquery?

766


How can events be prevented from stopping to work after an ajax request?

734


How to check data type of any variable in jquery? : jquery mobile

727


Why do we use jquery? : jquery mobile

763


Can you use any other name in place of $ (dollar sign) in jQuery?

777


How to check or uncheck all checkboxes using jquery?

794


How we can get the value of a radio button using jquery?

760


Is Uncaught TypeError: $(…).modal not a function jquery?

807


What is slice() method in jquery?

767


Is jquery a framework?

746


In jquery, what is the meaning of toggle?

708