I am trying to change the selected item of color in css . I tried but I am failed could someone please help me how to achieve my goals .
Thanks
select option:checked {
color: #000 !important;
}
<select className="form-control input-box" {...input} required>
<option value="">Task Type</option>
<option value="Meeting">Meeting</option>
<option value="FollowUp">Follow Up</option>
<option value="Viewing">Viewing</option>
<option value="reminder">Reminder</option>
<option value="other">Other</option>
</select>