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 |
How to Use the jQuery load() Method?
How to check jQuery version?
How can jquery be used in conjunction with another javascript library that also uses $ for naming?
How to disable/enable an element in jquery?
Which is fast document.getElementByID('txtName') or $('#txtName').?
How to increase cursor size in html body using jquery?
Which is the fastest selector in jQuery?
How to executed jquery selectors? : jquery mobile
Explain how jquery works?
Difference between javascript and jquery?
What are the difference between empty(), remove() and detach() functions in jquery?
What is chaining in jQuery?