Skip to content

Commit bb5aa24

Browse files
Charlene TranCharlene Tran
Charlene Tran
authored and
Charlene Tran
committed
CT completed
1 parent eb06d1b commit bb5aa24

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

user-input-with-forms/chapter-examples-CT/checkbox-inputs/index.html

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,23 @@
1717
<!-- single checkbox -->
1818
<label>crew<input type="checkbox" name="crewReady"/></label>
1919

20-
<!-- group with different name -->
20+
21+
22+
23+
<!-- group with DIFFERENT 'name' -->
2124
<h3>Activities</h3>
22-
<label for="cooking">cooking</label>
23-
<input id="cooking" type="radio" name="cooking"/>
2425

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> -->
2735

28-
<!-- group all with same name -->
36+
<!-- group all with SAME 'name' -->
2937
<h3>Ingredients</h3>
3038
<label>Onion<input type="checkbox" name="ingredient" value="onion"/></label>
3139
<label>Butter<input type="checkbox" name="ingredient" value="butter"/></label>

0 commit comments

Comments
 (0)