Our select tags display an empty option tag at the beginning to ensure users don't automatically select the first option otherwise displayed:
<select name="title" required pattern="[A-Z]">
<option value="0"></option>
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Ms">Ms</option>
</select>
How do we validate the select tag to ensure one of the options OTHER than 0 is selected?
Perferably without Javascript!!
Aucun commentaire:
Enregistrer un commentaire