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
How to disable/enable an element with jQuery?
What is jquery connect and how to use it?
What is the difference between jquery and javascript?
What are the various ajax functions available in jquery ?
Whether jQuery HTML work for both HTML and XML documents?
What were the biggest challenges of getting the jQuery 1.7 release ?
What is the difference between prop and attr?
Explain the term method chaining? : jQuery Mobile
Can you use multiple document.ready() function on the same page?
Difference between javascript and jquery?
What is the use of jQuery.data() method?
How to get the value of selected option in jquery?
Need to add jQuery file in both Master and Content page?
Which selector has better performance id or class and why?
How to get the current offset of the first matched element, in pixels, relative to the document using ?