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 |
---|