Forms | Sololearn: Learn to code for FREE!

0

Forms

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 menghani

3 Answers

New Answer

+6

varun 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😃.

+1

“value” is the default text that will appear written in a text input, in this case 1 and 2.

0

En el ejercicio 11 como sería HTML