Last active
December 19, 2015 02:09
-
-
Save DominicFinn/5880904 to your computer and use it in GitHub Desktop.
DateTime picker example for Ant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Example</title> | |
| <link href="CSS/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" /> | |
| <style> | |
| /* css for timepicker */ | |
| .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } | |
| .ui-timepicker-div dl { text-align: left; } | |
| .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; } | |
| .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; } | |
| .ui-timepicker-div td { font-size: 90%; } | |
| .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } | |
| .ui-timepicker-rtl{ direction: rtl; } | |
| .ui-timepicker-rtl dl { text-align: right; } | |
| .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; } | |
| </style> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
| <script src="Scripts/jquery-ui-1.10.3.custom.min.js"></script> | |
| <script src="Scripts/timepicker.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| $('document').ready(function() { | |
| $('#txtDate').datetimepicker({ dateFormat: 'dd/mm/yy' }); | |
| }); | |
| </script> | |
| </head> | |
| <body> | |
| <input type="text" id="txtDate"> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment