Jean Mallet's answer ( beforeShowDay: $.datepicker.noWeekends ) is simple and elegant.
However, if you are already calling a function using beforeShowDay (as I was in my case), here is how you can disable certain days of the week (in this case, Sunday and Saturday), chained along with the rest of your function:
beforeShowDay: function (date) { if (date.getDay() > 0 && date.getDay() < 6) { return [true, '']; } else { return [false, '']; } }

Mike zavarello
source share