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 disable/enable an element with jQuery?

948


What is jquery connect and how to use it?

961


What is the difference between jquery and javascript?

905


What are the various ajax functions available in jquery ?

772


Whether jQuery HTML work for both HTML and XML documents?

863


What were the biggest challenges of getting the jQuery 1.7 release ?

992


What is the difference between prop and attr?

839


Explain the term method chaining? : jQuery Mobile

824


Can you use multiple document.ready() function on the same page?

972


Difference between javascript and jquery?

869


What is the use of jQuery.data() method?

905


How to get the value of selected option in jquery?

862


Need to add jQuery file in both Master and Content page?

825


Which selector has better performance id or class and why?

796


How to get the current offset of the first matched element, in pixels, relative to the document using ?

896