-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (45 loc) · 1.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Ordered choices</title>
<link rel="stylesheet" href="choices.css"/>
<script>
document.documentElement.classList.add('has-js');
</script>
</head>
<body>
<h1>Ordered choices</h1>
<form id="form" action="#form">
<fieldset>
<legend>Favourite fruit</legend>
<ul id="choices" class="choices">
<li>
<input id="apple" type="checkbox" name="fruit" value="apple"/>
<label for="apple">Apple</label>
</li>
<li>
<input id="banana" type="checkbox" name="fruit" value="banana"/>
<label for="banana">Banana</label>
</li>
<li>
<input id="lemon" type="checkbox" name="fruit" value="lemon"/>
<label for="lemon">Lemon</label>
</li>
<li>
<input id="tangerine" type="checkbox" name="fruit" value="tangerine"/>
<label for="tangerine">Tangerine</label>
</li>
</ul>
</fieldset>
<div class="js-only">
<h2>Selected options</h2>
<input type="hidden" id="ordered-choices-input" name="ordered-choices-input"/>
<ol class="ordered" id="ordered-choices">
</ol>
</div>
<button type="submit">Submit</button>
</form>
<script src="choices.js"></script>
</body>
</html>