client/player/css/jq-css/demos/datepicker/alt-field.html
changeset 51 2d6866072851
child 57 3a3c15c462f8
equal deleted inserted replaced
50:1ecfe4720da7 51:2d6866072851
       
     1 <!DOCTYPE html>
       
     2 <html lang="en">
       
     3 <head>
       
     4 	<meta charset="UTF-8" />
       
     5 	<title>jQuery UI Datepicker - Populate alternate field</title>
       
     6 	<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
       
     7 	<script type="text/javascript" src="../../jquery-1.4.2.js"></script>
       
     8 	<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
       
     9 	<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
       
    10 	<script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
       
    11 	<link type="text/css" href="../demos.css" rel="stylesheet" />
       
    12 	<script type="text/javascript">
       
    13 	$(function() {
       
    14 		$("#datepicker").datepicker({altField: '#alternate', altFormat: 'DD, d MM, yy'});
       
    15 	});
       
    16 	</script>
       
    17 </head>
       
    18 <body>
       
    19 
       
    20 <div class="demo">
       
    21 
       
    22 <p>Date: <input type="text" id="datepicker">&nbsp;<input type="text" id="alternate" size="30"/></p>
       
    23 
       
    24 </div><!-- End demo -->
       
    25 
       
    26 <div class="demo-description">
       
    27 
       
    28 <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>
       
    29 
       
    30 </div><!-- End demo-description -->
       
    31 
       
    32 </body>
       
    33 </html>