Skip to content

Instantly share code, notes, and snippets.

@kilfu0701
Created September 25, 2013 03:03
Show Gist options
  • Save kilfu0701/6694691 to your computer and use it in GitHub Desktop.
Save kilfu0701/6694691 to your computer and use it in GitHub Desktop.
override datepicker's result.
<html>
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
</head>
<body>
<form id="FormSet" action="/abc" method="get" accept-charset="utf-8">
<input type="text" name="start_date" id="datepicker1" value="">
<input type="submit" value="Search it!">
</form>
<script type="text/javascript">
$(document).ready(function() {
$('#datepicker1').datepicker({dateFormat: 'yy-mm-dd 00:00:00',
onSelect: function(dateStr) {
}});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment