Option value Property
Option Object
Definition and Usage
The value property sets or returns the value of the option (the data is sent to the server when the form is submitted).
**Tip:** When the form is submitted, if this option is selected, the value is submitted together with the form.
Syntax
Set the value attribute:
optionObject.value=
"text"
Return the value attribute:
optionObject.value
Browser support





All major browsers support the value property.
Example
Example
Display the selected option value:
Try it »
Option Object