Load date picker

Description

The following code shows how to load date picker.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.6.4.js'></script>
<link rel="Stylesheet"
  href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" />
<link rel="stylesheet"
  href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript"
  src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript"
  src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript"
  src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head><!--  w w  w . j a v  a  2  s  .c  om-->
<body>
  <div id="my-page" data-role="page" data-theme="b">
    <ul data-role="listview" data-inset="true">
      <li><a>One</a></li>
      <li><a>Two</a></li>
      <li><a>Three</a></li>
    </ul>
    <br /> <input id="date-entry" type="text" data-theme="b" />
  <script>
      jQuery("#my-page").live("pageinit", function () {
            jQuery("#date-entry").datepicker();
      });   
     </script>
  </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