Drop down list using javascript array
<p>Good day!</p>

<p>How can i make the first value in my array e.g currency[0] be the default value of my drop down list?</p>

<p>My code is as follows:</p>

<pre><code>function addOption(selectbox,text,value )
    {
        var optn = document.createElement("OPTION");
        optn.text = text;
        optn.value = value;
        selectbox.options.add(optn);
    }

    function initAll(){
        var currency = new Array("Peso","Dollar","Euro","Yen","CAD");
        var rate = new Array("0.02319", "1", "1.416", "0.012241", "1.027");
        for (var i=0; i &lt; currency.length;++i){
            addOption(document.drop_list.Month_list, currency[i],rate[i]);
        }
    }
</code></pre>

<p>I want the default value be the first array...</p>

<pre><code>&lt;FORM name="drop_list"&gt;
   &lt;select name="Month_list"&gt;: 
       &lt;Option value="" &gt;-----&lt;/option&gt;  //what could i insert here?
   &lt;/select&gt;&lt;br&gt;
&lt;/form&gt;
</code></pre>

<p>You're help would be highly appreciated.</p>
