option element

Type:Forms
Attributes: value
See:input

The option element is used within an input element where the type is "select". It defines the various options available in the pull-down list, and is identical to the "option" element in HTML. The value that's displayed on the screen is set between the <option> and </option> tags, and this is also the value that's submitted to the server unless the optional value attribute is specified.

Also see the examples for INPUT

The basic OPTION element

<input type="select" name="year">
  <option>2000</option>
  <option>2001</option>
  <option>2002</option>
</input>

Using the VALUE attribute. The numeric value is the one that's submitted

<input type="select" name="month">
  <option value="1">January</option>
  <option value="2">February</option>
  <option value="3">March</option>