New course! Every coder should learn Generative AI!
Try a free lesson+ 11
whats the use of <input type="hidden"> tag ?
use of hidden tag
5 Answers
+ 8
The hidden field type can contain data ( in 'value' attribute like all <input> elements ) wich will not be displayed to the user.
When submiting form, hidden data are also sent: by this way, supplementaries informations can be transmitted to server side scripts, or add some text to the mail sent by the form...
Even for JS this is an useful possibility to store data to send at the server when the user submit the form...
[EDIT]
For password, the <input> type is 'password', and the default behaviour is to hide the user text entry, but not the field itself ^^
+ 11
An input hidden from the user (data is usually written with JS)
+ 8
thank you friends
+ 8
can anyone give me an example
where it is used
0
yeah its for password becox password are information dat no one is to see or knw if not you that owns it < input type="password" value="anytin">