Input Hidden form attribute
Definition and usage
form
The property returns a reference to the form containing the hidden input field.
This property returns the form object on success.
Note:This property is read-only.
Example
Return the id of the form containing the <input type="hidden"> element:
var x = document.getElementById("myInput").form.id;
Syntax
hiddenObject.form
Technical details
Return value: |
Reference to the form element containing the hidden input field. If the hidden input field is not in the form, it returns |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |