PDA

View Full Version : Detecting the color style of a selectbox?


blindbull
11-01-2002, 09:18 AM
Is there a way of detecting the style color of a select box?

I set the style using:

strStartOfOption = "<option style=color:GRAY;

And try to detect it using:

alert(objSelect.options[ctr].color);

But it is undefined.

aEr_aEr
11-01-2002, 09:40 AM
try this

alert(objSelect.options[ctr].style.color);