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

How jQuery selectors are executed?

1 Answers  


How to load a page using jquery mobile? : jquery mobile

0 Answers  


Explain jquery $.ajax() method?

0 Answers  


What is difference between onload and ready?

0 Answers  


Explain .siblings() method in jquery?

0 Answers  






How to add and remove css classes to an element using ?

0 Answers  


How to get the current offset of the first matched element, in pixels, relative to the document using ?

0 Answers  


How do you select all elements with the class of “selected” in jquery?

0 Answers  


Will Events Are Also Copied On Clone In Jquery?

0 Answers  


Tell me what does $("div") will select? : jquery mobile

0 Answers  


How to load jQuery locally when CDN fails?

1 Answers  


How to submit a form without submit button using jquery?

0 Answers  


Categories