Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rashid327/94d6c431839c5ccb9a2bbb1b6297dafa to your computer and use it in GitHub Desktop.
Save rashid327/94d6c431839c5ccb9a2bbb1b6297dafa to your computer and use it in GitHub Desktop.
JQuery Date Picker example to disable previous dates
<html>
<head>
<title></title>
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" rel="Stylesheet"
type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script language="javascript">
$(document).ready(function () {
$("#txtdate").datepicker({
minDate: 0
});
});
</script>
</head>
<body>
Date :
<input id="txtdate" type="text">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment