Jquery Disable Past and Feature Dates to Select
Code:
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
<script>
$(document).ready(function () {
$('input[id$=appointmetDate]').datepicker({minDate:0, maxDate: 7, dateFormat:'dd-mm-yy'}).attr('readonly','readonly');
});
</script>
</head>
<body>
Date:<input type="text" id="appointmetDate" />
</body>
</html>
Code:
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
<script>
$(document).ready(function () {
$('input[id$=appointmetDate]').datepicker({minDate:0, maxDate: 7, dateFormat:'dd-mm-yy'}).attr('readonly','readonly');
});
</script>
</head>
<body>
Date:<input type="text" id="appointmetDate" />
</body>
</html>