JSFiddle - React, Tailwind, and code Playground
by RaviMakwana
HTML
<input onkeyup="this.setAttribute('value', this.value);" />
<select>
<option selected></option>
<option>1</option>
</select>
CSS
input[value=""], select:not(:selected) {
background-color: red;
}