баг в IE с innerHTML в select
В IE начиная с версии 5 есть досадный баг с работой метода innerHTML применительно к тегу select.
Конструкция вида:
document.GetElementById('some_select').innerHTML = '<option>some 1</option>';
не работает в IE.
Как вариант можно ставить <select> в <div id="mySelect"></div> и делать
document.GetElementById("mySelect").innerHTML = " <select><option>some</option></select> ";
Или же
var opt = document.createElement("option"); opt.innerHTML = "some text"; opt.value = "0"; document.getElementByID("someSelectId").appendChild(opt);
Ссылки по теме:
http://alexle.net/archives/150


