Question #796   Submitted by Answiki on 11/02/2021 at 07:28:13 PM UTC

How to create a hidden input field in HTML forms?

Answer   Submitted by Answiki on 11/02/2021 at 07:30:42 PM UTC

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




3 events in history
Answer by Answiki on 11/02/2021 at 07:30:42 PM

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




Question by Answiki 11/02/2021 at 07:28:13 PM
How to create a hidden input field in HTML forms?
Question by Answiki 11/02/2021 at 07:28:05 PM
How to create a hidden field in HTML forms?
# ID Query URL Count

Icons proudly provided by Friconix.