Create multiple select form with javascript
<p>i'm have question..</p>

<p>can i create multiple select form with javascript?</p>

<p>here the example</p>

<pre><code>&lt;select name="item[]"&gt;
&lt;option value="0"&gt;Option 1&lt;/option&gt;
&lt;option value="1"&gt;Option 2&lt;/option&gt;
&lt;/select&gt;

&lt;select name="item[]"&gt;
&lt;option value="0"&gt;Option 1&lt;/option&gt;
&lt;option value="1"&gt;Option 2&lt;/option&gt;
&lt;/select&gt;

&lt;select name="item[]"&gt;
&lt;option value="0"&gt;Option 1&lt;/option&gt;
&lt;option value="1"&gt;Option 2&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>and more...</p>

<p>i want to do this with this:</p>

<pre><code>&lt;script&gt;
var loop = 3;
for(i=0; i&lt;=3 i++){
// some code to generate them
}
&lt;/script&gt;
</code></pre>

<p>anyone can help me? thanks</p>