jQuery - .prepend() for each element in list of input's?
<p>Is it possible to use <code>prepend</code> for each element in a list of <code>input</code>'s within a <code>form</code>?
The prepend below only prepends the first element - is it possible to prepend the label for all items: </p>

<pre><code>&lt;script&gt;
$(document).ready(function(){
    $("#sg1").each(function(){
        $(this).prepend("&lt;label for=\""+$(this).attr("id")+"\"&gt;"+$(this).attr("id")+"&lt;/label&gt;");
    });
});
&lt;/script&gt;
&lt;form id="sg1"&gt;
    &lt;input name="member1" id="member1" value="jack" /&gt;
    &lt;input name="member2" id="member2" value="carter" /&gt;
    &lt;input name="member3" id="member3" value="jackson" /&gt;
    &lt;input name="member4" id="member4" value="tielk" /&gt;
&lt;/form&gt;
</code></pre>

<p><a href="http://jsfiddle.net/RM5wG/" rel="nofollow">http://jsfiddle.net/RM5wG/</a></p>
