Skip to content

Instantly share code, notes, and snippets.

@onel0p3z
Created June 11, 2013 15:45
Show Gist options
  • Save onel0p3z/5757987 to your computer and use it in GitHub Desktop.
Save onel0p3z/5757987 to your computer and use it in GitHub Desktop.
Date picker w/ jQuery UI
<html>
<head>
<title>Date picker</title>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/base/jquery-ui.css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
</head>
<body>
<form>
<input id="datepicker" name="inf_field_Birthday" type="text" />
</form>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#datepicker').datepicker({
dateFormat : 'mm-dd-yy'
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment