Select.value (Property)

The presently selected option value.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-mySelect.value

This is the string value that is sent back to the web server when the form is submitted.

This is equivalent to:

mySelect.options[mySelect.selectedIndex].value

It is the value of the first or only item selected in the popup. It will be the value of the first item when multiple items have been selected.

See also:Input.value