> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Juraj
> Seffer
> Sent: 20 November 2007 20:01
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: FN-FORUM: IE inner.HTML workaround?
>
>
> Hi all,
>
> What is the best solution to work around bug in Internet Explorer
> preventing you to amend inner.HTML?
> I have AJAX which replaces elements inside , it works
> fine in FF, Opera and Safari but IE fails.
>
> Is the below the best way?
>
> var opt = document.createElement("option");
> opt.innerHTML = "text of the option";
> opt.value = "0″;
> document.getElementByID("mysel").appendChild(opt);
>
You should be using opt.text = "text of the option"; to change the actual
value of the option.