For what you are looking to achieve, beforeShowDay
is what you are looking for.
$("#datepicker").datepicker({
beforeShowDay: function(date) {
var day = date.getDay();
return [(day != 1 && day != 2 && day != 4 && day != 5 && day !=0), ''];
}
});
There could be a more elegant way to figure out the day of the week, but I shall let you figure that out.
solved how do i enable WED and SAT in Jquery Calender