This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
/
checkboxradio.html
154 lines (131 loc) · 6.34 KB
/
checkboxradio.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Checkbox & Radio buttons - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<script src="../../../js/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../../js/"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-theme="f">
<h1>Checkbox & Radio buttons</h1>
<a href="../" data-icon="home" data-iconpos="notext" data-ajax="false">Home</a>
</div><!-- /header -->
<div data-role="content">
<div class="content-primary">
<form>
<h2>Radio button</h2>
<div data-demo-html="true">
<label><input type="radio" name="radio-choice-0" id="radio-choice-0a"/>One</label>
<label for="radio-choice-0b">Two</label>
<input type="radio" name="radio-choice-0" id="radio-choice-0b" class="custom" />
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup">
<legend>Vertical:</legend>
<input type="radio" name="radio-choice-v-2" id="radio-choice-v-2a" value="on" checked="checked">
<label for="radio-choice-v-2a">One</label>
<input type="radio" name="radio-choice-v-2" id="radio-choice-v-2b" value="off">
<label for="radio-choice-v-2b">Two</label>
<input type="radio" name="radio-choice-v-2" id="radio-choice-v-2c" value="other">
<label for="radio-choice-v-2c">Three</label>
</fieldset>
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-iconpos="right" data-mini="true">
<legend>Vertical, icon right, mini sized:</legend>
<input type="radio" name="radio-choice-v-6" id="radio-choice-v-6a" value="on" checked="checked">
<label for="radio-choice-v-6a">One</label>
<input type="radio" name="radio-choice-v-6" id="radio-choice-v-6b" value="off">
<label for="radio-choice-v-6b">Two</label>
<input type="radio" name="radio-choice-v-6" id="radio-choice-v-6c" value="other">
<label for="radio-choice-v-6c">Three</label>
</fieldset>
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Horizontal:</legend>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2a" value="on" checked="checked">
<label for="radio-choice-h-2a">One</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2b" value="off">
<label for="radio-choice-h-2b">Two</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2c" value="other">
<label for="radio-choice-h-2c">Three</label>
</fieldset>
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Horizontal, mini sized:</legend>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6a" value="on" checked="checked">
<label for="radio-choice-h-6a">One</label>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6b" value="off">
<label for="radio-choice-h-6b">Two</label>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6c" value="other">
<label for="radio-choice-h-6c">Three</label>
</fieldset>
</div><!--/demo-html -->
<h2>Checkbox</h2>
<div data-demo-html="true">
<label><input type="checkbox" name="checkbox-0 "/>One</label>
<label for="checkbox-1">Two</label>
<input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup">
<legend>Vertical:</legend>
<input type="checkbox" name="checkbox-v-2a" id="checkbox-v-2a">
<label for="checkbox-v-2a">One</label>
<input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b">
<label for="checkbox-v-2b">Two</label>
<input type="checkbox" name="checkbox-v-2c" id="checkbox-v-2c">
<label for="checkbox-v-2c">Three</label>
</fieldset>
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-iconpos="right" data-mini="true">
<legend>Vertical, icon right, mini sized:</legend>
<input type="checkbox" name="checkbox-v-6a" id="checkbox-v-6a">
<label for="checkbox-v-6a">One</label>
<input type="checkbox" name="checkbox-v-6b" id="checkbox-v-6b">
<label for="checkbox-v-6b">Two</label>
<input type="checkbox" name="checkbox-v-6c" id="checkbox-v-6c">
<label for="checkbox-v-6c">Three</label>
</fieldset>
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Horizontal:</legend>
<input type="checkbox" name="checkbox-h-2a" id="checkbox-h-2a">
<label for="checkbox-h-2a">One</label>
<input type="checkbox" name="checkbox-h-2b" id="checkbox-h-2b">
<label for="checkbox-h-2b">Two</label>
<input type="checkbox" name="checkbox-h-2c" id="checkbox-h-2c">
<label for="checkbox-h-2c">Three</label>
</fieldset>
</div><!--/demo-html -->
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Horizontal, mini sized:</legend>
<input type="checkbox" name="checkbox-h-6a" id="checkbox-h-6a">
<label for="checkbox-h-6a">One</label>
<input type="checkbox" name="checkbox-h-6b" id="checkbox-h-6b">
<label for="checkbox-h-6b">Two</label>
<input type="checkbox" name="checkbox-h-6c" id="checkbox-h-6c">
<label for="checkbox-h-6c">Three</label>
</fieldset>
</div><!--/demo-html -->
</form>
</div><!--/content-primary -->
</div><!-- /content -->
<div class="jqm-footer">
<p class="jqm-version"></p>
<p>© 2010, 2013 jQuery Foundation and other contributors</p>
</div><!-- /jqm-footer -->
</div><!-- /page -->
</body>
</html>