Input Radio form Property
Definition and Usage
form
The property returns a reference to the form containing the radio buttons.
This property returns the form object on success.
Note:This property is read-only.
Example
Get the id of the form containing the <input type="radio"> element:
var x = document.getElementById("myCheck").form.id;
Syntax
radioObject.form
Technical Details
Return Value: |
Reference to a form element containing radio buttons. Returns if the checkbox is not in the form. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |