upload tizen1.0 source
[framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.0.1pre / docs / forms / radiobuttons / methods.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/" />
8         <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
9         <script src="../../../js/jquery.js"></script>
10         <script src="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
11         <script src="../../_assets/js/jqm-docs.js"></script>
12         <script src="../../../js/"></script>
13 </head>
14 <body>
15
16         <div data-role="page" class="type-interior">
17
18                 <div data-role="header" data-theme="f">
19                 <h1>Radio buttons</h1>
20                 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
21         </div><!-- /header -->
22
23         <div data-role="content">
24                 <div class="content-primary">
25
26                 <form action="#" method="get">
27
28                 <h2>Radio buttons</h2>
29                         
30                         <ul data-role="controlgroup" data-type="horizontal" class="localnav">
31                                 <li><a href="index.html" data-role="button" data-transition="fade">Basics</a></li>
32                                 <li><a href="options.html" data-role="button" data-transition="fade">Options</a></li>
33                                 <li><a href="methods.html" data-role="button" data-transition="fade" class="ui-btn-active">Methods</a></li>
34                                 <li><a href="events.html" data-role="button" data-transition="fade">Events</a></li>
35                         </ul>
36                         
37                         <p>The radio button has the following methods:</p>
38
39                 <dl>
40                         
41                         <dt><code>enable</code> enable a disabled radio button</dt>
42                         <dd>
43                                 <pre><code>
44  $("input[type='radio']").checkboxradio('enable');
45                                 </code></pre>
46                         </dd>
47                         
48                         <dt><code>disable</code> disable a select.</dt>
49                         <dd>
50                                 <pre><code>
51 $("input[type='radio']").checkboxradio('disable');
52                                 </code></pre>
53                         </dd>
54                         
55                         <dt><code>refresh</code> update the custom select</dt>
56                         <dd>
57       If you manipulate a radio button via JavaScript, you must call the refresh method on it to update the visual styling.
58                                 <pre><code>
59 $("input[type='radio']:first").attr("checked",true).checkboxradio("refresh");
60                                 </code></pre>
61                         </dd>
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="../textinputs/index.html">Text inputs</a></li>
80                                         <li><a href="../search/">Search input</a></li>
81                                         <li><a href="../slider/">Slider</a></li>
82                                         <li><a href="../switch/">Flip toggle switch</a></li>
83                                         <li data-theme="a"><a href="index.html">Radio buttons</a></li>
84                                         <li><a href="../checkboxes/">Checkboxes</a></li>
85                                         <li><a href="../selects/">Select menus</a></li>
86                                         <li><a href="../forms-themes.html">Theming forms</a></li>
87                                         <li><a href="../forms-all-native.html">Native form elements</a></li>
88                                         <li><a href="../forms-sample.html">Submitting forms</a></li>
89                                         
90         
91                                 </ul>
92                 </div>
93         </div>          
94
95 </div><!-- /content -->
96
97 <div data-role="footer" class="footer-docs" data-theme="c">
98                 <p>&copy; 2011 The jQuery Project</p>
99 </div>
100         
101 </div><!-- /page -->
102
103 </body>
104 </html>
105