Name

option

Type

_input

Synopsis

How to render an option input field. Mostly used within the input select fields.

Description

The Missing value attribute.

   <_input type="option" value="dog">Dog</option>
   <_input type="option" value="cat">Cat</option>
   <_input type="option" value="hamster">Hamster</option>
   <_input type="option" value="parrot">Parrot</option>
   <_input type="option" value="spider">Spider</option>
   <_input type="option" value="goldfish">Goldfish</option>

</select> </syntaxhighlight> <_select name="pets" id="pet-select">

   <_input type="option" value="">--Please choose an option--</option>
   <_input type="option" value="dog">Dog</option>
   <_input type="option" value="cat">Cat</option>
   <_input type="option" value="hamster">Hamster</option>
   <_input type="option" value="parrot">Parrot</option>
   <_input type="option" value="spider">Spider</option>
   <_input type="option" value="goldfish">Goldfish</option>

</select>

Note

Links

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option for all the details.