Is there a way to change the background of an option element when I hover over it without JS?
I mean a simple select with options.
option:hover {
background-color: yellow;
}
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="vw">VW</option>
<option value="audi" selected>Audi</option>
</select>
I tried all available options. But without Javascript, I couldn't find a solution.