value attribute | value property

Sets or retrieves the default or selected value of the control.

Syntax

HTML<element value="p" ... >
JavaScript

p = object.value

 

Property values

Type: String

the value for the control.

See also

button

 

 

Show: