I'm facing a challenge in changing the color of the selected value in the dropdown menu. Each value has a different color, but when I select one, it reverts back to black.
.appt-status select option[value="0"] {
color: #3EA47B;
}
.appt-status option[value="1"] {
color: #3EA47B
}
.appt-status option[value="2"] {
color: #FF0000;
}
.appt-status option[value="3"] {
color: #FFA927;
}
<select class="form-control appt-status" data-bind="value: confirmationStatus, event:{ change: $parent.statusChanged}" >
<option data-icon="" class="status-list" value="1" > Confirmed</option>
<option class="status-list" value="2" >Reschedule</option>
<option class="status-list" value="3" >Pending</option>
<option class="status-list" value="0" >Not opted-in</option>
</select>