Option.value (Property)

The text value that is returned to the server if this item is selected.


DOM level - 1
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Netscape Enterprise Server version - 2.0
Opera browser - 3.0
Property/method value type:String primitive
JavaScript syntax:-myOption.value

The text that the user sees is not necessarily the same as that sent back when the form is submitted. Some degree of normalization is available so that the user may see a text string but a lookup mechanism can replace that with a numeric value thereby saving some work in the server.

See also:Input.value