Created
September 25, 2013 03:03
-
-
Save kilfu0701/6694691 to your computer and use it in GitHub Desktop.
override datepicker's result.
This file contains 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
<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