In latest browser using just css is it possible to set the color of select element different when a disabled option is selected? Let me explain with an example
<select>
<option selected="selected" disabled="disabled" value="1">Val 1</option>
<option value="2">Val 2</option>
<option value="3">Val 3</option>
</select>
I am looking for a solution something like
select {
color: #000
}
select option[disabled]{
color: #ccc;
}
select when disabled option is selected {
color: #ccc
}
jsfiddle: https://jsfiddle.net/xsdg2sq9/