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

Which command will give a version of jQuery?

0 Answers  


How do I check if an HTML element is empty using jQuery?

0 Answers  


How we can get the input value of an element using jquery?

0 Answers  


How can jquery library be added to pages? Write a basic jquery code?

0 Answers  


Is it possible to use our own specific character in the place of $ sign in jquery? : jquery mobile

0 Answers  






Suppose if you have a server control(asp.net server control, button) and on the click of button you want to call a jquery function, so tell me how you will call a jquery function without postback?

0 Answers  


What to do to select element having a particular class (".selected")? : jquery mobile

0 Answers  


What is jquery selectors?

0 Answers  


Define all the ways to include jquery in a page?

0 Answers  


Tell me which command will give a version of jquery?

0 Answers  


How to add or remove classes to an element in jquery?

0 Answers  


What is event.stoppropagation? : jquery mobile

0 Answers  


Categories