Hi i am using a disabled on my select dropdown as i dont want it to be clickable.. now it is turning my text grey.
Html:
<select disabled>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
I have overwritten it with some css which will hide my dropdown and border etc and also turned the color black:
select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border: none;
/* needed for Firefox: */
overflow:hidden;
width: 90%;
background-color: #F2EDE9;
color:black;
}
select::-ms-expand {
display: none;
}
Now it is fine on all other browsars chrome, FF, safari, but the one i want it to change color on is IE. The disabled select dropdown font color is staying grey. It needs to be a select dropdown so please do not suggest using readonly etc etc.
If anyone has got away round this so it can be turned black it would be very helpful to have.
Thanks Dom