I have this html:

<input id="testme" test="something"/><label test="something2"></label>

and this js

$("[test]").each(alert($(this).attr("test")));

demoed here:

jsfidde

I would think the alert would give me "something" and then "something2". But it does nothing!

What is going on?

Edit
Report