javascript InputTypeRadio name
name | Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1 |
Read/Write | |
This is the identifier associated with the form control contains current InputTypeRadio element. The value of this property is submitted as one-half of the name/value pair when the form is submitted to the server (the value property of the highlighted radio button supplies the value portion). Names are hidden from user view, since control labels are assigned via other means, depending on the control type. Form control names may also be used by script references to the objects. Assign the same name to every radio button in a group whose highlight/unhighlight characteristics are related. Despite the modern standards' preference for the id attribute, many browsers still require that a form control be assigned a name attribute to allow the control's value to be submitted, but no two elements should have the same id attribute value. Therefore, if scripts need to reference elements by id, devise two separate naming schemes for the common name attributes and unique id attributes. |
|
Example | |
document.orderForm.myRadio[0].name = "connectivity"; |
|
Value | |
Case-sensitive string identifier that follows the rules of identifier naming: it may contain no whitespace, can't begin with a numeral, and should avoid punctuation except for the underscore character. |
|
Default | |
None. |
Powered by Linode.