When I select one or multiple options in select box in Firefox, the background of the selected options will be blue. But how can I change this background-color with CSS or JS?
Any Ideas?
When I select one or multiple options in select box in Firefox, the background of the selected options will be blue. But how can I change this background-color with CSS or JS?
Any Ideas?
<input type="checkbox" value="text" /><span>Item 1</span>
<input type="checkbox" value="text" /><span>Item 2</span>
<style>
input:checked + span {
background: blue;
}
</style>