I am trying to change the text color of a SELECTED option in a Select menu and I cannot seem to get it to work. Below is my code. Any ideas? I only want to change the color once an option with a value has been selected... i.e. anything but the first option.
html:
<div class="row1-3home"> <select name="phone1" id="phone1"> <option value="">-- Select Phone Type --</option> <option value="Mobile">Mobile</option> <option value="Office">Office</option> <option value="Home">Home</option> </select> <select name="phone2" id="phone2"> <option value="">-- Select Phone Type --</option> <option value="Mobile">Mobile</option> <option value="Office">Office</option> <option value="Home">Home</option> </select> </div> CSS:
.row1-3 select, .row1-3home select { background:#FFF; font-size:12px; font-family:'Open Sans', sans-serif; width:94%; margin-left:3%; margin-right:3%; height:40px; line-height:40px; border:none; padding-left:10px; border-radius:none; margin-bottom:5px; -moz-appearance: none; } .row1-3 select option, .row1-3home select option { color:#01afd2; } .row1-3 select option:not(:checked), .row1-3home select option:not(:checked) { color:#9fa7b4; }