What is the syntax of a hidden form field in HTML?
To hide input field in HTML forms, there are two options:
HTML: the attribute type="hidden" hide the field. The following code creates a hidden field with a default value:
<input type="hidden" name="hiddenFieldName" value="myValue">
CSS : It is also possible to hide the field with the CSS property visibility:hidden:
<input style="visibility:hidden" name="hiddenFieldName" value="myValue">
To hide input field in HTML forms, there are two options:
HTML: the attribute type="hidden" hide the field. The following code creates a hidden field with a default value:
<input type="hidden" name="hiddenFieldName" value="myValue">
CSS : It is also possible to hide the field with the CSS property visibility:hidden:
<input style="visibility:hidden" name="hiddenFieldName" value="myValue">
To hide input field in HTML forms, there are two options:
HTML: the attribute type="hidden" hide the field. The following code creates a hidden field with a default value:
<input type="hidden" name="monChampCache" value="maValeur">
CSS : It is also possible to hide the field with the CSS property visibility:hidden:
<input style="visibility:hidden" name="monChampCache" value="maValeur">
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 12441 | en | https://en.ans.wiki/6471/what-is-the-syntax-of-a-hidden-form-field-in-html | 5 |