Hi Mas11,
Please check following link
jQuery Datepicker: Disable specific weekdays[
^]
Following are the code:
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/base/jquery-ui.css">
type="text/css" media="all" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js">
type="text/javascript"></script></link>
<script type="text/javascript">
$(function () {
var daysToDisable = [2, 4, 5];
$('#<%= txtDate.ClientID %>').datepicker({
beforeShowDay: disableSpecificWeekDays
});
function disableSpecificWeekDays(date) {
var day = date.getDay();
for (i = 0; i < daysToDisable.length; i++) {
if ($.inArray(day, daysToDisable) != -1) {
return [false];
}
}
return [true];
}
});
</script>
<body>
<form id="form1" runat="server">
<asp:textbox id="txtDate" runat="server" xmlns:asp="#unknown"></asp:textbox>
</form>
</body>
Please do let me know, if you have any issue.
Thanks,
Imdadhusen