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 can jquery library be added to pages? Write a basic jquery code?
What is queue() in jquery?
What is jquery connect and how to use it?
Is it too early to discuss jquery ui 1.8?
How to get the style property of an element using ?
What is the purpose of fadetoggle() method in jquery?
How to keep the submit text from showing with jquery mobile? : jquery mobile
What does the jQuery migrate function do?
Explain jquery connect?
How we can select multiple elements in jquery?
Which one is more efficient, document.getElementbyId( "myId") or $("#myId)?
Tell me an example usage of jquery mobile? : jquery mobile
Is vanilla js faster than jquery?
what does $("div") will select? : jquery mobile
Jumping off of jquery ui for a second, do you 'release early, release often' with all of your projects? What are your thoughts on that strategy?