Input Hidden type Attribute
Definition and Usage
type
The attribute returns which type of form element the hidden input field is.
For hidden objects, this will always be "hidden
".
Example
Find out what type of form element the hidden input field is:
var x = document.getElementById("myInput").type;
Syntax
hiddenObject.type
Technical Details
Return Value: | String value, the form element type of the hidden input field. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |