innerHTML problem
Hi,
Im trying to do something in javascript that i would have thought was ridiculously easy, yet i seem to be having problems. Ive basically got a bit of script, an if statement that looks like below
if (something == "this")
{
//code here
}
Where the //code here is i want a bit of script that will populate a dropdown list with three options, which would be something like
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
I thought i could do it using innerHTML but doing that has just not worked whatsoever. Does anyone know the code to do this.
Thanks in advance
Regards
Al Higgs
|