[thelist] Form generated in JS doesn't work in IE

kasimir-k kasimir.k.lists at gmail.com
Fri May 30 07:32:30 CDT 2008

> kasimir-k wrote:
>> Yes, sorry, you still need to do this:
>> mySelect.appendChild(myOption);

Chris Price scribeva in 2008-05-30 06:56:
> This works OK in FF and is neater but in IE6 all the options are null.

Sorry again - stupid me!

IE doesn't see a select's options as normal elements - that's the reason 
we use

    new Option(text, value);

instead of


and for the very same reason we can't use


but must add the options to the select's options array

    for (i in myArray) {
       var myOption = new Option(text, value);
       mySelect.options[] = myOption;


More information about the thelist mailing list