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
Explain chaining in jquery? : jquery mobile
How can we apply css in even childs of parent node using jquery library?
What is the difference between jquery.get() and jquery.ajax()?
Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?
What is the method used to define the specific character in place of $ sign?
What is the between $(this) and 'this' in jquery?
Define cache paremeter of jquery ajax method?
How to use transition effects? : jQuery Mobile
What is the advantage of using minimized version of jQuery?
What is the difference between onload() and document.ready() function used in jquery?
How can we show and hide an element via jquery?
Explain various methods to make ajax request in jquery?
What is the script build up by jQuery?
Difference between javascript and jquery?
What is the use jQuery.data method?