Basically, is
$("#someid")
or
$(".someclass")
faster than
$("[someattr='value']")
I would imagine that it is (that is, selection by id is fastest, then class, then attribute), but does anyone know for sure?
Basically, is
$("#someid")
or
$(".someclass")
faster than
$("[someattr='value']")
I would imagine that it is (that is, selection by id is fastest, then class, then attribute), but does anyone know for sure?