Adding form inputs in javascript (jquery)
<p>I understand that you do something like:</p>

<pre><code>$('form').append('&lt;input type="text" name="color-1" value="Hello" /&gt;');
</code></pre>

<p>But I have two questions about it. First off, I don't want it added to the end of the form, but after the last input in the "color" section. Secondly, where "name=color-1", I need the one to increment if they want to add more than one input, you know? So that I can process it on the server.</p>

<p>Any ideas?</p>
