0

values

<input type="checkbox" name="gender" value="1" />Male <br /> <input type="checkbox" name="gender" value="2" />Female <br /> this lesson is introducing checkbox inputs. but in the line of code it lists a value in numerical order. i changed the number to see if something happened and nothing did. what is the purpose of this value?

3rd May 2018, 10:01 PM
Colin
Colin - avatar
2 Answers
+ 1
Value is used by Javascript you don’t know Javascript yet so don’t worry about it
3rd May 2018, 10:56 PM
TurtleShell
TurtleShell - avatar
0
TurtleShell oooh gotcha. thanks
4th May 2018, 12:00 AM
Colin
Colin - avatar