Following snippet works in Firefox:
var ele = document.getElementById('select1'); var htm = '<option value="coke">cokecola</option><option value="pepsi">Pepsi</option>'; ele.innerHTML = htm;
But it does not work in IE. You should use following snippet in IE:
var ele = document.getElementById('select1'); ele.options[0] = new Option('cokecola', 'coke'); ele.options[1] = new Option('Pepsi', 'pepsi');