Setting an variable using jquery .attr and then changing it
<p>I have a bunch of fields and some of them have labels like</p>

<pre><code>&lt;input id="1" /&gt;&lt;label for="1" /&gt;
&lt;input id="2" /&gt;
&lt;input id="3" /&gt;&lt;label for="3" /&gt;
</code></pre>

<p>For every label i want to do something like</p>

<pre><code>var for_label = $(label).attr("for");
</code></pre>

<p>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...</p>
