How to create a hidden field in HTML forms?
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 | 13489 | alphons | https://en.ans.wiki/795/how-to-create-a-hidden-field-in-html-forms | 1 |
| 1 | 12679 | en | https://en.ans.wiki/795/how-to-create-a-hidden-field-in-html-forms | 7 |