-
Notifications
You must be signed in to change notification settings - Fork 9
/
demo2.html
94 lines (87 loc) · 2.68 KB
/
demo2.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
<!doctype html>
<title>Demo 2 - Custom Radio-Checkbox Plugin</title>
<link href="css/demo.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/custom-radio-checkbox.css" rel="stylesheet" type="text/css" media="screen" />
<h1>Custom Radio-Checkbox Plugin</h1>
<p id="menu">
<a href="demo1.html" title="input inside label">Demo 1</a>
<a class="current-demo" href="demo2.html" title="input inside label without 'for' attribute">Demo 2</a>
<a href="demo3.html" title="label next to input">Demo 3</a>
<a href="demo4.html" title="ajax loaded content">Demo 4</a>
</p>
<h2>The <code><input></code> is inside the <code><label></code> without the <code>"for"</code> attribute</h2>
<p>*important: Without the <code>"for"</code> attribute, IE6 is not supported.</p>
<ul id="tabs" class="clearfix">
<li><a href="#view" class="current">VIEW</a></li>
<li><a href="#html">HTML</a></li>
</ul>
<div id="content">
<div id="view" class="section">
<form method="post" action="" id="form">
<div class="fl w200 mr10">
<h2>Radio group 1</h2>
<p>
<label>
<input type="radio" name="radioGroup1" id="yes" value="Yes" />Yes
</label>
</p>
<p>
<label>
<input type="radio" name="radioGroup1" id="no" value="No" />No
</label>
</p>
<p>
<label>
<input type="radio" name="radioGroup1" id="maybe" value="Maybe" />Maybe
</label>
</p>
</div>
<div class="fl w200">
<h2>Radio group 2</h2>
<p>
<label>
<input type="radio" name="radioGroup2" id="uno" value="Uno" />Uno
</label>
</p>
<p>
<label>
<input type="radio" name="radioGroup2" id="dos" value="Dos" />Dos
</label>
</p>
<p>
<label>
<input type="radio" name="radioGroup2" id="tres" value="Tres" />Tres
</label>
</p>
</div>
<div class="separator"></div>
<!-- checkbox -->
<p>
<label>
<input type="checkbox" name="Checkbox" id="checkbox1" value="1" />Checkbox 1
</label>
</p>
<p>
<label>
<input type="checkbox" name="Checkbox" id="checkbox2" value="2" />Checkbox 2
</label>
</p>
<p>
<label>
<input type="checkbox" name="Checkbox" id="checkbox3" value="3" />Checkbox 3
</label>
</p>
<div class="separator"></div>
<p id="submit"><input type="submit" value="Show result" /></p>
</form>
<p><strong>Form result:</strong> <span id="result"></span></p>
</div>
<div id="html" class="section">
<pre>
<code id="html_output"></code>
</pre>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="js/jquery.custom-radio-checkbox.js"></script>
<script src="js/demo.js"></script>