Jquery selector, should I specify type of html tag?

I have many html tags with class = 'class1'. They all happen to be/ and always will be the same type of element. For example input elements.

Is there a performance difference between

$("input.class1")

and

$(".class1")

Thanks!

NOTE: In this case i need information specifically pertaining to IE8, however a mention of a cross browser solution is important, my clients can only use IE8 so the best answer will have the best answer specifically for IE8.

5
задан kralco626 4 January 2011 в 18:19
поделиться