I have a dropdown menu with a default placeholder ("ex. Crawler Excavator") displayed in lightgray. I want only this placeholder to be in lightgray when selected, while all other labels should be black. Currently, I am able to color the selected item lightgray, but it's affecting all other non-empty items as well. For clarification, please refer to the GIF and JSFiddle code provided below:
https://jsfiddle.net/fhgdrxz9/
Snippet Code CSS: css element.style {} select.form-control { text-overflow: visible; cursor: pointer; } .custom-border-radius>input, .custom-border-radius>select, .custom-border-radius div>span>span>.select2-selection .select2-selection--single { border-radius: 6px; border: 1px solid #DADADA; } .empty-label-gray>div>select, .empty-label-gray>select { color: #9e9e9e !important; } And here is an example HTML code block showing the dropdown list structure: html