Create two fieldcontain

Description

The following code shows how to create two fieldcontain.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.6.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css">
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
</head><!--from  ww w.  ja va2  s. c  o m-->
<body>
  <div data-role="page" id="jqm-home" class="type-home">
    <div data-role="content">
      <div data-role="fieldcontain">
        <fieldset data-role="controlgroup">
          <legend>Select Preferred Times:</legend>
          <input type="checkbox" name="Pref500" id="Pref500" class="custom" />
          <label for="Pref500">5:00</label> 
          <input type="checkbox" name="Pref630" id="Pref630" class="custom" /> 
          <label for="Pref630">6:30</label>
        </fieldset>
      </div>
      <div data-role="fieldcontain">
        <fieldset data-role="controlgroup">
          <legend>Select Available Times:</legend>
          <input type="checkbox" name="Avail500" id="Avail500" class="custom" />
          <label for="Avail500">5:00</label> 
          <input type="checkbox" name="Avail630" id="Avail630" class="custom" /> 
          <label for="Avail630">6:30</label>
        </fieldset>
      </div>
    </div>
  </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