annotate jquery-ui/development-bundle/demos/button/checkbox.html @ 0:b2e4605f20b2

beta version
author dwinter
date Thu, 30 Jun 2011 09:07:49 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
1 <!DOCTYPE html>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
2 <html lang="en">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
3 <head>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
4 <meta charset="utf-8">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
5 <title>jQuery UI Button - Checkboxes</title>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
7 <script src="../../jquery-1.5.1.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
8 <script src="../../ui/jquery.ui.core.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
9 <script src="../../ui/jquery.ui.widget.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
10 <script src="../../ui/jquery.ui.button.js"></script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
11 <link rel="stylesheet" href="../demos.css">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
12 <script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
13 $(function() {
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
14 $( "#check" ).button();
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
15 $( "#format" ).buttonset();
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
16 });
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
17 </script>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
18 <style>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
19 #format { margin-top: 2em; }
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
20 </style>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
21 </head>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
22 <body>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
23
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
24 <div class="demo">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
25
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
26 <input type="checkbox" id="check" /><label for="check">Toggle</label>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
27
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
28 <div id="format">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
29 <input type="checkbox" id="check1" /><label for="check1">B</label>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
30 <input type="checkbox" id="check2" /><label for="check2">I</label>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
31 <input type="checkbox" id="check3" /><label for="check3">U</label>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
32 </div>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
33
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
34 </div><!-- End demo -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
35
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
36
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
37
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
38 <div class="demo-description">
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
39 <p>A checkbox is styled as a toggle button with the button widget. The label element associated with the checkbox is used for the button text.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
40 <p>This demo also demonstrates three checkboxes styled as a button set by calling <code>.buttonset()</code> on a common container.</p>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
41 </div><!-- End demo-description -->
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
42
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
43 </body>
b2e4605f20b2 beta version
dwinter
parents:
diff changeset
44 </html>