Debian Codegraph @

demos/datepicker/alt-field.html

raw
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery UI Datepicker - Populate alternate field</title>
7 <link rel="stylesheet" href="../../themes/base/all.css">
8 <link rel="stylesheet" href="../demos.css">
9 <script src="../../external/requirejs/require.js"></script>
10 <script src="../bootstrap.js">
11 $( "#datepicker" ).datepicker({
12 altField: "#alternate",
13 altFormat: "DD, d MM, yy"
14 });
15 </script>
16 </head>
17 <body>
18
19 <p>Date: <input type="text" id="datepicker">&nbsp;<input type="text" id="alternate" size="30"/></p>
20
21 <div class="demo-description">
22 <p>Populate an alternate field with its own date format whenever a date is selected using the <code>altField</code> and <code>altFormat</code> options. This feature could be used to present a human-friendly date for user selection, while passing a more computer-friendly date through for further processing.</p>
23 </div>
24 </body>
25 </html>