asp.net.ph

Skip Navigation Links

VALUE Attribute | value Property

Language References


Sets or retrieves the value of a form control or PARAM element.

Syntax


Inline <element VALUE = sValue...>
Script object.value = sValue ]

Possible Values


sValue String specifying the value of the control.

This property is read/write with a default value that depends on the type of control.

Remarks

The purpose of the string depends on the type of control.

If the attribute is not specified, it defaults to:

All other objects have no default value.

The value attribute of the PARAM element specifies a value passed to an APPLET, EMBED, or OBJECT object.

Example

The following example sets the value for each option to an integer string ( for example, a part number ).

<select>
  <option value="123">Item One
  <option value="456">Item Two
  <option value="789">Item Three
</select>
Applies To

BUTTON, INPUT, OPTION, PARAM

See Also

Form Submission: Successful Controls



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note