Group three select controls

Description

The following code shows how to group three select controls.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css">
</head><!--   w w w  .java2  s .c o m-->
<body>
  <div data-role="fieldcontain">
    <fieldset data-role="controlgroup" data-type="horizontal">
      <label for="select-choice-month">Month</label> 
      <select name="select-choice-month" id="select-choice-month">
        <option>Month</option>
        <option value="jan">January</option>
        <!-- etc. -->
      </select> <label for="select-choice-day">Day</label> 
      <select name="select-choice-day" id="select-choice-day">
        <option>Day</option>
        <option value="1">1</option>
        <!-- etc. -->
      </select> <label for="select-choice-year">Year</label> 
      <select name="select-choice-year" id="select-choice-year">
        <option>Year</option>
        <option value="2011">2011</option>
        <!-- etc. -->
      </select>
    </fieldset>
  </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme