7
|
1 <!doctype html>
|
|
2 <html lang="en">
|
|
3 <head>
|
|
4 <meta charset="utf-8">
|
|
5 <title>jQuery UI Datepicker - Display button bar</title>
|
|
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
|
7 <script src="../../jquery-1.10.2.js"></script>
|
|
8 <script src="../../ui/jquery.ui.core.js"></script>
|
|
9 <script src="../../ui/jquery.ui.widget.js"></script>
|
|
10 <script src="../../ui/jquery.ui.datepicker.js"></script>
|
|
11 <link rel="stylesheet" href="../demos.css">
|
|
12 <script>
|
|
13 $(function() {
|
|
14 $( "#datepicker" ).datepicker({
|
|
15 showButtonPanel: true
|
|
16 });
|
|
17 });
|
|
18 </script>
|
|
19 </head>
|
|
20 <body>
|
|
21
|
|
22 <p>Date: <input type="text" id="datepicker"></p>
|
|
23
|
|
24 <div class="demo-description">
|
|
25 <p>Display a button for selecting Today's date and a Done button for closing the calendar with the boolean <code>showButtonPanel</code> option. Each button is enabled by default when the bar is displayed, but can be turned off with additional options. Button text is customizable.</p>
|
|
26 </div>
|
|
27 </body>
|
|
28 </html>
|