How jQuery selectors are executed?

Technology CommunityCategory: jQueryHow jQuery selectors are executed?
VietMX Staff asked 3 years ago

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”.

$("p#elmID .myCssClass");