As a example of jQuery code (https://coderwall.com/p/7uchvg), I read that the expression $('#foo a');
behaves like this:
Find every
a
in the page and then filtera
inside#foo
.
And it does not look efficient.
Is that correct? And if yes, how should we do that in a better way?
See Question&Answers more detail:os