Revert "Export"
[framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.1.0 / docs / forms / radiobuttons / events.html
1 <!DOCTYPE html>
2 <html>
3         <head>
4         <meta charset="utf-8">
5         <meta name="viewport" content="width=device-width, initial-scale=1">
6         <title>jQuery Mobile Docs - Radio buttons</title>
7         <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css" />
8         <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
9         <script src="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
10         <script src="../../../js/jquery.js"></script>
11         <script src="../../../docs/_assets/js/jqm-docs.js"></script>
12         <script src="../../../js/"></script>
13
14 </head>
15 <body>
16
17         <div data-role="page" class="type-interior">
18
19                 <div data-role="header" data-theme="f">
20                 <h1>Radio buttons</h1>
21                 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
22                 <a href="../../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
23         </div><!-- /header -->
24
25         <div data-role="content">
26                 <div class="content-primary">
27
28                 <form action="#" method="get">
29
30                 <h2>Radio buttons</h2>
31                         
32                         <ul data-role="controlgroup" data-type="horizontal" class="localnav">
33                                 <li><a href="index.html" data-role="button" data-transition="fade">Basics</a></li>
34                                 <li><a href="options.html" data-role="button" data-transition="fade">Options</a></li>
35                                 <li><a href="methods.html" data-role="button" data-transition="fade">Methods</a></li>
36                                 <li><a href="events.html" data-role="button" data-transition="fade" class="ui-btn-active">Events</a></li>
37                         </ul>
38                         
39                         
40                         <p>Bind events directly to the <code>input</code> element.  Use jQuery Mobile's <a href="../../api/events.html">virtual events</a>, or bind standard JavaScript events, like change, focus, blur, etc.:</p>
41                         <pre><code> 
42 $("input[type='radio']").bind( "change", function(event, ui) {
43   ...
44 });
45 </code></pre> 
46                         
47                         <p>The radio button plugin has the following custom events:</p>
48
49         <dl>
50                                 
51                 <dt><code>create</code> triggered when a radio button is created</dt>
52                 <dd>
53                         
54
55                         <pre><code>
56 $("input[type='radio']").checkboxradio({
57    create: function(event, ui) { ... }
58 });             
59                         </code></pre>
60                 </dd>
61                 
62
63         </dl>
64             
65         </form>
66         </div><!--/content-primary -->          
67         
68         <div class="content-secondary">
69                 
70                 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
71                         
72                                 <h3>More in this section</h3>
73                                 
74                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
75                                 
76                                         <li data-role="list-divider">Form elements</li>
77                                         <li><a href="../docs-forms.html">Form basics</a></li>
78                                         <li><a href="../forms-all.html">Form element gallery</a></li>
79                                         <li><a href="../forms-all-mini.html">Mini form element gallery</a></li>
80                                         <li><a href="../textinputs/index.html">Text inputs</a></li>
81                                         <li><a href="../search/">Search input</a></li>
82                                         <li><a href="../slider/">Slider</a></li>
83                                         <li><a href="../switch/">Flip toggle switch</a></li>
84                                         <li data-theme="a"><a href="index.html">Radio buttons</a></li>
85                                         <li><a href="../checkboxes/">Checkboxes</a></li>
86                                         <li><a href="../selects/">Select menus</a></li>
87                                         <li><a href="../forms-themes.html">Theming forms</a></li>
88                                         <li><a href="../forms-all-native.html">Native form elements</a></li>
89                                         <li><a href="../forms-sample.html">Submitting forms</a></li>
90                                         
91         
92                                 </ul>
93                 </div>
94         </div>          
95
96 </div><!-- /content -->
97
98 <div data-role="footer" class="footer-docs" data-theme="c">
99                 <p>&copy; 2011-12 The jQuery Foundation</p>
100 </div>
101         
102 </div><!-- /page -->
103
104 </body>
105 </html>
106