Skip to content

Instantly share code, notes, and snippets.

@hcmn
Created July 11, 2012 20:15
Show Gist options
  • Save hcmn/3093031 to your computer and use it in GitHub Desktop.
Save hcmn/3093031 to your computer and use it in GitHub Desktop.
JQuery UI: Datepicker
<html>
<head>
<title>Datepicker!</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/base/jquery-ui.css"/>
</head>
<body>
<p>Date: <input type="text" id="dateEntry"></p>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
<script src="script.js"></script>
</html>
$(function() {
// Select the <div> dateEntry here and then apply datepicker()
$('#dateEntry').datepicker();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment