What is the meaning of (value=“1”) in :- <input type=“checkbox” name=“gender” value=“1” /> <br /> <input type=“checkbox” name=“gender” value=“2” /> <br /> ?
4/2/2020 3:43:51 PM
varun menghani3 Answers
New Answervarun menghani If i am not mistaken, its the value that will be sent to the server to distinguish wich choice the person made, or took both choices, its like an ID for each one👍. It is better to clear the doubts of lessons in their comment section below😃.
“value” is the default text that will appear written in a text input, in this case 1 and 2.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message