Dynamically adding options to drop down box
<p>I have a drop down box in which am entering values dynamically.But sometime its value doenot get refreshed? How come i force the drop down box to get refreshed?</p>

<pre><code>var DropdownBox =document.getElementById("xyz");
var optn = document.createElement("OPTION");
optn.text="txt";
optn.value="val";
DropdownBox.options.add(optn);
</code></pre>
