@@ -204,86 +204,86 @@ <h2>Vertically grouped select inputs</h2>
204
204
205
205
< p > Because the < code > label</ code > element will be associated with each individual select input, we recommend wrapping the selects in a < code > fieldset</ code > element that has a < code > legend</ code > which acts as the combined label for the grouped inputs.</ p >
206
206
207
- < p > Lastly, one needs to wrap the < code > fieldset </ code > in a < code > div </ code > with < code > data-role="controlgroup" </ code > attribute , so it can be styled as a group.</ p >
207
+ < p > Lastly, one needs to add the < code > data-role="controlgroup" </ code > attribute to the < code > fieldset </ code > , so it will be styled as a group.</ p >
208
208
209
209
< pre > < code >
210
210
<div data-role="fieldcontain">
211
- <fieldset data-role="controlgroup">
212
- <legend>Date of Birth:</legend>
213
-
214
- <label for="select-choice-month"> Month</label>
215
- <select name="select-choice-month" id="select-choice-month">
216
- <option>Month</option>
217
- <option value="jan">January</option>
218
- <!-- etc. -->
219
- </select>
220
-
221
- <label for="select-choice-day"> Day</label>
222
- <select name="select-choice-day" id="select-choice-day">
223
- <option>Day</option>
224
- <option value="1">1</option>
225
- <!-- etc. -->
226
- </select>
227
-
228
- <label for="select-choice-year"> Year</label>
229
- <select name="select-choice-year" id="select-choice-year">
230
- <option>Year</option>
231
- <option value="2011">2011</option>
232
- <!-- etc. -->
233
- </select>
234
- </fieldset>
211
+ <fieldset data-role="controlgroup">
212
+ <legend>Date of Birth:</legend>
213
+
214
+ <label for="select-choice-month"> Month</label>
215
+ <select name="select-choice-month" id="select-choice-month">
216
+ <option>Month</option>
217
+ <option value="jan">January</option>
218
+ <!-- etc. -->
219
+ </select>
220
+
221
+ <label for="select-choice-day"> Day</label>
222
+ <select name="select-choice-day" id="select-choice-day">
223
+ <option>Day</option>
224
+ <option value="1">1</option>
225
+ <!-- etc. -->
226
+ </select>
227
+
228
+ <label for="select-choice-year"> Year</label>
229
+ <select name="select-choice-year" id="select-choice-year">
230
+ <option>Year</option>
231
+ <option value="2011">2011</option>
232
+ <!-- etc. -->
233
+ </select>
234
+
235
+ </fieldset>
235
236
</div>
236
237
</ code > </ pre >
237
238
238
239
< div data-role ="fieldcontain ">
239
- < fieldset data-role ="controlgroup ">
240
- < legend > Date of Birth:</ legend >
241
-
242
- < label for ="select-choice-month "> Month</ label >
243
- < select name ="select-choice-month " id ="select-choice-month ">
244
- < option > Month</ option >
245
- < option value ="jan "> January</ option >
246
- < option value ="dec "> December</ option >
247
- < option value ="feb "> February</ option >
248
- < option value ="mar "> March</ option >
249
- < option value ="apr "> April</ option >
250
- < option value ="may "> May</ option >
251
- < option value ="jun "> June</ option >
252
- < option value ="jul "> July</ option >
253
- < option value ="aug "> August</ option >
254
- < option value ="sep "> September</ option >
255
- < option value ="oct "> October</ option >
256
- < option value ="nov "> November</ option >
257
- < option value ="dec "> December</ option >
258
- </ select >
259
-
260
- < label for ="select-choice-day "> Day</ label >
261
- < select name ="select-choice-day " id ="select-choice-day ">
262
- < option > Day</ option >
263
- < option value ="1 "> 1</ option >
264
- < option value ="2 "> 2</ option >
265
- < option value ="3 "> 3</ option >
266
- < option value ="4 "> 4</ option >
267
- < option value ="5 "> 5</ option >
268
- < option value ="6 "> 6</ option >
269
- < option value ="7 "> 7</ option >
270
- </ select >
271
-
272
- < label for ="select-choice-year "> Year</ label >
273
- < select name ="select-choice-year " id ="select-choice-year ">
274
- < option > Year</ option >
275
- < option value ="2011 "> 2011</ option >
276
- < option value ="2010 "> 2010</ option >
277
- < option value ="2009 "> 2009</ option >
278
- < option value ="2008 "> 2008</ option >
279
- < option value ="2007 "> 2007</ option >
280
- < option value ="2006 "> 2006</ option >
281
- < option value ="2005 "> 2005</ option >
282
- < option value ="2004 "> 2004</ option >
283
- </ select >
284
- </ fieldset >
285
-
286
- </ div >
240
+ < fieldset data-role ="controlgroup ">
241
+ < legend > Date of Birth:</ legend >
242
+
243
+ < label for ="select-choice-month "> Month</ label >
244
+ < select name ="select-choice-month " id ="select-choice-month ">
245
+ < option > Month</ option >
246
+ < option value ="jan "> January</ option >
247
+ < option value ="dec "> December</ option >
248
+ < option value ="feb "> February</ option >
249
+ < option value ="mar "> March</ option >
250
+ < option value ="apr "> April</ option >
251
+ < option value ="may "> May</ option >
252
+ < option value ="jun "> June</ option >
253
+ < option value ="jul "> July</ option >
254
+ < option value ="aug "> August</ option >
255
+ < option value ="sep "> September</ option >
256
+ < option value ="oct "> October</ option >
257
+ < option value ="nov "> November</ option >
258
+ < option value ="dec "> December</ option >
259
+ </ select >
260
+
261
+ < label for ="select-choice-day "> Day</ label >
262
+ < select name ="select-choice-day " id ="select-choice-day ">
263
+ < option > Day</ option >
264
+ < option value ="1 "> 1</ option >
265
+ < option value ="2 "> 2</ option >
266
+ < option value ="3 "> 3</ option >
267
+ < option value ="4 "> 4</ option >
268
+ < option value ="5 "> 5</ option >
269
+ < option value ="6 "> 6</ option >
270
+ < option value ="7 "> 7</ option >
271
+ </ select >
272
+
273
+ < label for ="select-choice-year "> Year</ label >
274
+ < select name ="select-choice-year " id ="select-choice-year ">
275
+ < option > Year</ option >
276
+ < option value ="2011 "> 2011</ option >
277
+ < option value ="2010 "> 2010</ option >
278
+ < option value ="2009 "> 2009</ option >
279
+ < option value ="2008 "> 2008</ option >
280
+ < option value ="2007 "> 2007</ option >
281
+ < option value ="2006 "> 2006</ option >
282
+ < option value ="2005 "> 2005</ option >
283
+ < option value ="2004 "> 2004</ option >
284
+ </ select >
285
+ </ fieldset >
286
+ </ div >
287
287
288
288
< h2 > Horizontally grouped select inputs</ h2 >
289
289
< p > Select inputs can also be used for grouped sets with more than one related selections. To make a horizontal button set, add the < code > data-type="horizontal"</ code > to the fieldset. Note that the buttons which trigger the select will resize depending on the currently selected option's value. Note that browsers without support for < code > display: inline-block;</ code > will group the selects vertically, as above.</ p >
0 commit comments