For example, when we use $('div span')
, how does jQuery do such a search for us?
Does it search for the span
element first or the div
?
It seems that the jQuery official site has no explanation on these things; it just show us what's functions are available through the API.
I want to know how every type jQuery selector is implemented, so I can select the best selector to use.
Do you know where I can get such info?