you can use the paudo :focus pseudo-class.
But this will indicate an βopenβ state, also when the <select> parameter is selected through a tab or element. To get around this, you can use something like select:hover:focus , but this is pretty ugly and not a solid solution.
select:focus { background-color: blue; color: white; }
<select> <option>Click me</option> <option>A</option> <option>B</option> <option>C</option> </select>
source share