Javascript Reference
Categories: InputTypeCheckbox

javascript InputTypeCheckbox value

@March 15, 2008, 1:22 a.m.
valueFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

Provides the current value associated with the form control that is submitted with the name/value pair for the element (if the checkbox is checked). All values are strings, but they may represent other kinds of data, including Boolean and numeric values.

 
Example
 
document.forms[0].extraPhone.value = "cellPhone";
 
Value

String.

 
Default

None.


Powered by Linode.