whats the use of <input type="hidden"> tag ? | Sololearn: Learn to code for FREE!
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

24th Jan 2017, 4:01 PM
Prashanth Kumar
Prashanth Kumar - avatar
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 ^^
25th Jan 2017, 8:03 AM
visph
visph - avatar
+ 11
An input hidden from the user (data is usually written with JS)
24th Jan 2017, 5:35 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
thank you friends
26th Jan 2017, 5:07 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 8
can anyone give me an example where it is used
26th Jan 2017, 5:09 AM
Prashanth Kumar
Prashanth Kumar - avatar
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">
20th Feb 2017, 3:15 PM
Abdulsamad Sadiq
Abdulsamad Sadiq - avatar