I have a drop down box in which values are entered dynamically. But sometimes it's value does not get refreshed. How can I force the drop down box to refresh?
var DropdownBox =document.getElementById("xyz");
var optn = document.createElement("OPTION");
optn.text="txt";
optn.value="val";
DropdownBox.options.add(optn);