Skip to content

Commit 0c45bda

Browse files
committed
Checkboxradio: demo fixup
1 parent 2295df3 commit 0c45bda

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

demos/checkboxradio/default.html

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,27 @@
1919
<div class="widget">
2020
<h1>Checkbox and radio button widgets</h1>
2121
<h2>Checkbox</h2>
22-
2322
<fieldset>
24-
<legend>Rating</legend>
25-
<label for="checkbox-1">2 Star</label>
26-
<input type="checkbox" name="checkbox-1" id="checkbox-1">
27-
<label for="checkbox-2">3 Star</label>
28-
<input type="checkbox" name="checkbox-2" id="checkbox-2">
29-
<label for="checkbox-3">4 Star</label>
30-
<input type="checkbox" name="checkbox-3" id="checkbox-3">
31-
<label for="checkbox-4">5 Star</label>
32-
<input type="checkbox" name="checkbox-4" id="checkbox-4">
23+
<legend>Filter by rating</legend>
24+
<label for="rating-1">2 Star</label>
25+
<input type="checkbox" name="rating" id="rating-1" value="1">
26+
<label for="rating-2">3 Star</label>
27+
<input type="checkbox" name="rating" id="rating-2" value="2">
28+
<label for="rating-3">4 Star</label>
29+
<input type="checkbox" name="rating" id="rating-3" value="3">
30+
<label for="rating-4">5 Star</label>
31+
<input type="checkbox" name="rating" id="rating-4" value="4">
3332
</fieldset>
3433
<h2>Radio Group</h2>
3534
<fieldset>
36-
<legend>Location: </legend>
37-
<label for="radio-1">New York</label>
38-
<input type="radio" name="radio-1" id="radio-1">
35+
<legend>Filter by location: </legend>
36+
<label for="location-new-york">New York</label>
37+
<input type="radio" name="location" id="location-new-york">
3938
<label>Paris
40-
<input type="radio" name="radio-1" id="radio-2">
39+
<input type="radio" name="location" id="location-paris">
4140
</label>
42-
<input type="radio" name="radio-1" id="radio-3">
43-
<label for="radio-3">London</label>
41+
<input type="radio" name="location" id="location-london">
42+
<label for="location-london">London</label>
4443
</fieldset>
4544
</div>
4645

0 commit comments

Comments
 (0)