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");