-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdemo3.html
85 lines (78 loc) · 2.71 KB
/
demo3.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
<!doctype html>
<title>Demo 3 - 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 href="demo2.html" title="input inside label without 'for' attribute">Demo 2</a>
<a class="current-demo" 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><label></code> is next to the <code><input></code></h2>
<p>*important: in this case the <code>"for"</code> attribute in the <code><label></code> is required</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>
<input type="radio" name="radioGroup1" id="yes" value="Yes" />
<label for="yes">Yes</label>
</p>
<p>
<input type="radio" name="radioGroup1" id="no" value="No" />
<label for="no">No</label>
</p>
<p>
<input type="radio" name="radioGroup1" id="maybe" value="Maybe" />
<label for="maybe">Maybe</label>
</p>
</div>
<div class="fl w200">
<h2>Radio group 2</h2>
<p>
<input type="radio" name="radioGroup2" id="uno" value="Uno" />
<label for="uno">Uno</label>
</p>
<p>
<input type="radio" name="radioGroup2" id="dos" value="Dos" />
<label for="dos">Dos</label>
</p>
<p>
<input type="radio" name="radioGroup2" id="tres" value="Tres" />
<label for="tres">Tres</label>
</p>
</div>
<div class="separator"></div>
<!-- checkbox -->
<p>
<input type="checkbox" name="Checkbox" id="checkbox1" value="1" />
<label for="checkbox1">Checkbox 1</label>
</p>
<p>
<input type="checkbox" name="Checkbox" id="checkbox2" value="2" />
<label for="checkbox2">Checkbox 2</label>
</p>
<p>
<input type="checkbox" name="Checkbox" id="checkbox3" value="3" />
<label for="checkbox3">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>