how to add multiple options in select tag using java script?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/740195/adding-options-to-a-select-using-jquery-javascript">Adding options to a select using Jquery/javascript</a>  </p>
</blockquote>



<p>I have a code like this:</p>

<pre><code>&lt;SELECT NAME="sel" onChange="split()"&gt;

&lt;OPTION VALUE=1&gt;1&lt;/option&gt;

&lt;/SELECT&gt;

&lt;SELECT NAME="selects" &gt;

&lt;OPTION VALUE=&gt;&lt;/option&gt;

&lt;/SELECT&gt;
</code></pre>

<p>When I am doing <code>onchange</code> in <code>sel</code>(1st select) it should go to <code>split()</code> function and after some of calculations I need to insert the multiple option on <code>selects</code>(2nd select) that option should be dynamic one. So how can I add multiple dynamic option to <code>selects</code> using javascript functions?</p>
