I want to set different background color for each option in a select, in according to a specific class.
<select>
<option class="yellow" value="1">Yellow</option>
<option class="red" value="2">Red</option>
<option class="green" value="3">Green</option>
</select>
So when I click on the select, this is what appears:
I want when I open the select, that each option item, will have as background the color of the class, so something like this: