I have a bunch of fields and some of them have labels like
<input id="1" /><label for="1" />
<input id="2" />
<input id="3" /><label for="3" />
For every label i want to do something like
var for_label = $(label).attr("for");
and then use the variable to apply a style to the appropriate input-field. How should I do this? I would much appreciate an example, I'm pretty new to Javascript...