How jQuery selectors are executed?



How jQuery selectors are executed?..

Answer / 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

More jQuery Interview Questions

How to Use the jQuery load() Method?

0 Answers  


How to check jQuery version?

0 Answers  


How can jquery be used in conjunction with another javascript library that also uses $ for naming?

0 Answers  


How to disable/enable an element in jquery?

0 Answers  


Which is fast document.getElementByID('txtName') or $('#txtName').?

1 Answers  


How to increase cursor size in html body using jquery?

0 Answers  


Which is the fastest selector in jQuery?

0 Answers  


How to executed jquery selectors? : jquery mobile

0 Answers  


Explain how jquery works?

0 Answers  


Difference between javascript and jquery?

0 Answers   HCL,


What are the difference between empty(), remove() and detach() functions in jquery?

0 Answers  


What is chaining in jQuery?

1 Answers  


Categories