I am searching for a solution to modify the color of a select box if one of the disabled options is not chosen.
Here is an example of the dropdown:
<select class="selectoption" name="desc[]">
<option disabled="disabled" selected="selected">Select option...</option>
<option value="1">Option 1</option>
</select>
Is there a way to change the background color of this select box if the disabled option remains unselected?
Currently, the background color is set to #333 and changes to another color once an option is selected by the user.
I have successfully implemented a similar feature using checkboxes through:
checkbox:checked
Thank you in advance for your help!