Answers for "how to add required for select tag"

16

html select required

<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

Code answers related to "how to add required for select tag"

Browse Popular Code Answers by Language