File tree 1 file changed +14
-6
lines changed
user-input-with-forms/chapter-examples-CT/checkbox-inputs
1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 17
17
<!-- single checkbox -->
18
18
< label > crew< input type ="checkbox " name ="crewReady "/> </ label >
19
19
20
- <!-- group with different name -->
20
+
21
+
22
+
23
+ <!-- group with DIFFERENT 'name' -->
21
24
< h3 > Activities</ h3 >
22
- < label for ="cooking "> cooking</ label >
23
- < input id ="cooking " type ="radio " name ="cooking "/>
24
25
25
- < label > running< input type ="radio " name ="cooking "/> </ label >
26
- < label > movies< input type ="radio " name ="cooking "/> </ label >
26
+ < label > Cooking< input type ="checkbox " name ="cooking "/> </ label >
27
+ < label > running< input type ="checkbox " name ="running "/> </ label >
28
+ < label > movies< input type ="checkbox " name ="movies "/> </ label >
29
+
30
+
31
+ <!-- Uses Radio Buttons -->
32
+ <!-- <label>cooking<input type="radio" name="cooking"/></label>
33
+ <label>running<input type="radio" name="running"/></label>
34
+ <label>movies<input type="radio" name="movies"/></label> -->
27
35
28
- <!-- group all with same name -->
36
+ <!-- group all with SAME ' name' -->
29
37
< h3 > Ingredients</ h3 >
30
38
< label > Onion< input type ="checkbox " name ="ingredient " value ="onion "/> </ label >
31
39
< label > Butter< input type ="checkbox " name ="ingredient " value ="butter "/> </ label >
You can’t perform that action at this time.
0 commit comments