You can ue the beforeShowDate
option of the datepicker combined with Date.getDay()
to do what you want, like this:
$("#datepicker").datepicker({
beforeShowDay: function(date) {
var day = date.getDay();
return [(day != 1 && day != 2)];
}
});
You can see a working demo here, this just takes the date, checks if it’s a Monday (1) or Tuesday (2) and returns false for the first array entry if that’s the case.