Which of the following selectors has the best performance, if not the same
$('#location_form input#id_name')
$('#id_name')
I often have questions like the ones above. I can not answer them because I lack knowledge on how to select work behind the scenes.
My question is:
- answer / opinions to the question above
- links explaining how jQuery selections work behind the scenes
- do all javascript frameworks work the same as jQuery when it comes to choices?
Thanks a lot.
source share