rgb192
asked on
change textcolor, background color in an option tag
<option selected value="0">Change Saved Value</option>
within the option tag
I want to set textcolor and background color
within the option tag
I want to set textcolor and background color
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
CSS:
<style type="text/css">
<!--
#form1 select {
color: #33FF00;
background-color: #0066FF;
}
</style>
HTML:
<form id="form1" name="form1" method="post" action="">
<select name="my_select">
<option value="0">aaa</option>
<option value="1">bbb</option>
<option value="2">ccc</option>
</select>
</form>