M
mike
I am trying to change the style for an option in a select after it gets
created.
here is my code for creating the option:
function addOption(theSel, theText, theValue)
{
var newOpt = new Option(theText, theValue);
var selLength = theSel.length;
theSel.options[selLength] = newOpt;
theSel.options[selLength].style = "color:#ff0000";
}
I get an error on the style line.
Anyone know how I can change the color of the option?
Mike
created.
here is my code for creating the option:
function addOption(theSel, theText, theValue)
{
var newOpt = new Option(theText, theValue);
var selLength = theSel.length;
theSel.options[selLength] = newOpt;
theSel.options[selLength].style = "color:#ff0000";
}
I get an error on the style line.
Anyone know how I can change the color of the option?
Mike