KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel