Tizen 2.1 base
[platform/framework/web/web-ui-fw.git] / demos / tizen-gray / widgets / forms-all-native.html
1 <!DOCTYPE html>
2         <div data-role="page" class="type-interior">
3
4                 <div data-role="header" data-position="fixed">
5                 <h1>Forms</h1>
6         </div><!-- /header -->
7
8         <div data-role="content">
9                 <div class="content-primary">
10
11                 <form action="#" method="get">
12
13                         <h2>Native form elements &amp; buttons</h2>
14
15                         <p>Although the framework automatically enhances form elements and buttons into <a href="forms-all.html">touch input optimized controls</a> to streamline development, it's easy to tell jQuery Mobile to leave these elements alone so the standard, native control can be used instead.</p>
16                         <p>Adding the <code>data-role="none"</code> attribute to any form or button element tells the framework to not apply any enhanced styles or scripting. The examples below all have this attribute in place to demonstrate the effect. You may need to write custom styles to lay out your form controls because we try to leave all the default styling intact.</p>
17
18                         <div data-role="fieldcontain">
19                  <label for="name">Text Input:</label>
20                  <input type="text" name="name" id="name" value="" data-role="none" />
21                         </div>
22
23                         <div data-role="fieldcontain">
24                         <label for="textarea">Textarea:</label>
25                         <textarea cols="40" rows="8" name="textarea" id="textarea" data-role="none"></textarea>
26                         </div>
27
28                         <div data-role="fieldcontain">
29                  <label for="search">Search Input:</label>
30                  <input type="search" name="password" id="search" value="" data-role="none" />
31                         </div>
32
33                         <div data-role="fieldcontain">
34                                 <label for="slider2">Flip switch:</label>
35                                 <select name="slider2" id="slider2" data-role="none">
36                                         <option value="off">Off</option>
37                                         <option value="on">On</option>
38                                 </select>
39                         </div>
40
41                         <div data-role="fieldcontain">
42                                 <label for="slider">Slider:</label>
43                                 <input type="range" name="slider" id="slider" value="0" min="0" max="100" data-role="none" />
44                         </div>
45
46                         <div data-role="fieldcontain">
47                         <fieldset data-role="controlgroup">
48                                 <legend>Choose as many snacks as you'd like:</legend>
49                                 <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" data-role="none" />
50                                 <label for="checkbox-1a">Cheetos</label>
51
52                                 <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" data-role="none" />
53                                 <label for="checkbox-2a">Doritos</label>
54
55                                 <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" data-role="none" />
56                                 <label for="checkbox-3a">Fritos</label>
57
58                                 <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" data-role="none" />
59                                 <label for="checkbox-4a">Sun Chips</label>
60                     </fieldset>
61                         </div>
62
63                         <div data-role="fieldcontain">
64                         <fieldset data-role="controlgroup" data-type="horizontal">
65                         <legend>Font styling:</legend>
66                         <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" data-role="none" />
67                                 <label for="checkbox-6">b</label>
68
69                                 <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" data-role="none" />
70                                 <label for="checkbox-7"><em>i</em></label>
71
72                                 <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" data-role="none" />
73                                 <label for="checkbox-8">u</label>
74                     </fieldset>
75                         </div>
76
77                         <div data-role="fieldcontain">
78                             <fieldset data-role="controlgroup">
79                                 <legend>Choose a pet:</legend>
80                                         <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" data-role="none" />
81                                         <label for="radio-choice-1">Cat</label>
82
83                                         <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" data-role="none" />
84                                         <label for="radio-choice-2">Dog</label>
85
86                                         <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3" data-role="none" />
87                                         <label for="radio-choice-3">Hamster</label>
88
89                                         <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4" data-role="none" />
90                                         <label for="radio-choice-4">Lizard</label>
91                             </fieldset>
92                         </div>
93
94                         <div data-role="fieldcontain">
95                             <fieldset data-role="controlgroup" data-type="horizontal">
96                                 <legend>Layout view:</legend>
97                                         <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" data-role="none" />
98                                         <label for="radio-choice-c">List</label>
99                                         <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" data-role="none" />
100                                         <label for="radio-choice-d">Grid</label>
101                                         <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" data-role="none" />
102                                         <label for="radio-choice-e">Gallery</label>
103                             </fieldset>
104                         </div>
105
106                         <div data-role="fieldcontain">
107                                 <label for="select-choice-1" class="select">Choose shipping method:</label>
108                                 <select name="select-choice-1" id="select-choice-1" data-role="none">
109                                         <option value="standard">Standard: 7 day</option>
110                                         <option value="rush">Rush: 3 days</option>
111                                         <option value="express">Express: next day</option>
112                                         <option value="overnight">Overnight</option>
113                                 </select>
114                         </div>
115
116                         <div data-role="fieldcontain">
117                                 <label for="select-choice-3" class="select">Your state:</label>
118                                 <select name="select-choice-3" id="select-choice-3" data-role="none">
119                                         <option>Choose...</option>
120                                         <option value="AL">Alabama</option>
121                                         <option value="AK">Alaska</option>
122                                         <option value="AZ">Arizona</option>
123                                         <option value="AR">Arkansas</option>
124                                         <option value="CA">California</option>
125                                         <option value="CO">Colorado</option>
126                                         <option value="CT">Connecticut</option>
127                                         <option value="DE">Delaware</option>
128                                         <option value="FL">Florida</option>
129                                         <option value="GA">Georgia</option>
130                                         <option value="HI">Hawaii</option>
131                                         <option value="ID">Idaho</option>
132                                         <option value="IL">Illinois</option>
133                                         <option value="IN">Indiana</option>
134                                         <option value="IA">Iowa</option>
135                                         <option value="KS">Kansas</option>
136                                         <option value="KY">Kentucky</option>
137                                         <option value="LA">Louisiana</option>
138                                         <option value="ME">Maine</option>
139                                         <option value="MD">Maryland</option>
140                                         <option value="MA">Massachusetts</option>
141                                         <option value="MI">Michigan</option>
142                                         <option value="MN">Minnesota</option>
143                                         <option value="MS">Mississippi</option>
144                                         <option value="MO">Missouri</option>
145                                         <option value="MT">Montana</option>
146                                         <option value="NE">Nebraska</option>
147                                         <option value="NV">Nevada</option>
148                                         <option value="NH">New Hampshire</option>
149                                         <option value="NJ">New Jersey</option>
150                                         <option value="NM">New Mexico</option>
151                                         <option value="NY">New York</option>
152                                         <option value="NC">North Carolina</option>
153                                         <option value="ND">North Dakota</option>
154                                         <option value="OH">Ohio</option>
155                                         <option value="OK">Oklahoma</option>
156                                         <option value="OR">Oregon</option>
157                                         <option value="PA">Pennsylvania</option>
158                                         <option value="RI">Rhode Island</option>
159                                         <option value="SC">South Carolina</option>
160                                         <option value="SD">South Dakota</option>
161                                         <option value="TN">Tennessee</option>
162                                         <option value="TX">Texas</option>
163                                         <option value="UT">Utah</option>
164                                         <option value="VT">Vermont</option>
165                                         <option value="VA">Virginia</option>
166                                         <option value="WA">Washington</option>
167                                         <option value="WV">West Virginia</option>
168                                         <option value="WI">Wisconsin</option>
169                                         <option value="WY">Wyoming</option>
170                                 </select>
171                         </div>
172
173                                 
174
175
176                         <p><strong>Button</strong> based button:</p>
177                         <button data-role="none">Button element</button>
178
179                         <p><strong>Input type="button"</strong> based button:</p>
180                         <input type="button" value="Input type=button" data-role="none" />
181
182                         <p><strong>Input type="submit"</strong> based button:</p>
183                         <input type="submit" value="Input type=submit" data-role="none" />
184
185                         <p><strong>Input type="reset"</strong> based button:</p>
186                         <input type="reset" value="Input type=reset" data-role="none" />
187
188                         <p><strong>Input type="image"</strong> based button:</p>
189                         <input type="image" src="../_assets/images/jquery-logo.png" style="width:120px; padding:5px; background:#fff; border:1px solid #999;" value="Input type=image" data-role="none" />
190
191         </form>
192
193         </div><!--/content-primary -->          
194         
195 </div><!-- /content -->
196
197 </div><!-- /page -->
198
199