Skip to content

Commit 329728c

Browse files
Merge pull request mdn#350 from jrsnzc/hotfix
Give each checkbox the same 'name'
2 parents 59bfd05 + 524a939 commit 329728c

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

html/forms/native-form-widgets/checkable-items.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@
1313
<ul>
1414
<li>
1515
<label for="carrots">Carrots</label>
16-
<input type="checkbox" checked id="carrots" name="carrots" value="carrots">
16+
<input type="checkbox" checked id="carrots" name="vegetable" value="carrots">
1717
</li>
1818
<li>
1919
<label for="peas">Peas</label>
20-
<input type="checkbox" id="peas" name="peas" value="peas">
20+
<input type="checkbox" id="peas" name="vegetable" value="peas">
2121
</li>
2222
<li>
2323
<label for="cabbage">Cabbage</label>
24-
<input type="checkbox" id="cabbage" name="cabbage" value="cabbage">
24+
<input type="checkbox" id="cabbage" name="vegetable" value="cabbage">
2525
</li>
2626
<li>
2727
<label for="cauli">Cauliflower</label>
28-
<input type="checkbox" id="cauli" name="cauli" value="cauli">
28+
<input type="checkbox" id="cauli" name="vegetable" value="cauli">
2929
</li>
3030
<li>
3131
<label for="broc">Broccoli</label>
32-
<input type="checkbox" id="broc" name="broc" value="broc">
32+
<input type="checkbox" id="broc" name="vegetable" value="broc">
3333
</li>
3434
</ul>
3535
</fieldset>

html/forms/tasks/basic-controls/marking.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,18 @@ The finished markup should look something like this:
6868
<ul>
6969
<li>
7070
<label for="vegan">Vegan</label>
71-
<input type="checkbox" id="vegan" name="vegan" value="vegan">
71+
<input type="checkbox" id="vegan" name="hotdog" value="vegan">
7272
</li>
7373
<li>
7474
<label for="onions">Onions</label>
75-
<input type="checkbox" id="onions" name="onions" value="onions">
75+
<input type="checkbox" id="onions" name="hotdog" value="onions">
7676
</li>
7777
<li>
7878
<label for="mustard">Mustard</label>
79-
<input type="checkbox" id="mustard" name="mustard" value="mustard">
79+
<input type="checkbox" id="mustard" name="hotdog" value="mustard">
8080
<li>
8181
<label for="ketchup">Ketchup</label>
82-
<input type="checkbox" id="ketchup" name="ketchup" value="ketchup">
83-
</li>
82+
<input type="checkbox" id="ketchup" name="hotdog" value="ketchup">
8483
</li>
8584
</ul>
8685
</fieldset>

0 commit comments

Comments
 (0)