If I have a CSS class which I only ever apply to form elements, eg:
Which of these two jQuery select
The first selector should be faster because jQuery can use the built-in function "getElementsByTagName" to reduce the number of elements it needs to filter. The second one has to get all the elements in the DOM and check their class.