Parameter value Property
Parameter Object
Example
Obtain the The value of the element:
var x = document.getElementById("myParam").value
x
The output is:
true
Try it »
Definition and Usage
The value property sets or returns the value of the value attribute of the parameter.
The value attribute describes The value of the element.
This attribute is usually used together with the name attribute to describe