Answers for "css empty select"

16

select empty option

<select name="color" id="color" required>
	<option value="" selected disabled hidden>Choose color...</option>
    <option value="R">Red</option>
    <option value="B">Blue</option>
</select>
Posted by: Guest on April-13-2021
3

select empty option

<option disabled selected value> -- select an option -- </option>
Posted by: Guest on June-23-2020

Browse Popular Code Answers by Language