I'm using placeholders for input fields which is working out just fine. But I'd like to use a placeholder for select options list as well.
Of course I can just use this code:
But the "Select your option" can be selected, and is in black instead of lightgrey.
So, is there any HTML-CSS based solution to make a placeholder for select box.
MarPloPosts:186
Add the "disabled" and "selected" attributes in the first <option> used as placeholder.
- disabled : stops the Option being selected with both mouse and keyboard.
- selected : makes the option as default selection.