error while adding new value for dropdownlist in javascript
<p>i need to add same value for two dropdowns in js
code is as follows</p>

<pre><code> var opt1 = new Option("All", 0);
 document.getElementById('ddlfromGroupCountry').optons[0] = opt1;
 document.getElementById('ddlFromCountry').optons[0] = opt1;
</code></pre>

<p>i am using same Option variable i.e opt1 for adding value to both dropdowns</p>

<p>in second line getting following error</p>

<pre><code>htmlfile: Invalid argument.
</code></pre>

<p>any suggestions</p>

<p>thanks in advance</p>
