I use a datepicker for choosing an appointment day. I already set the date range to be only for the next month. That works fine. I want to exclude Saturdays and Sundays f
$("#selector").datepicker({ beforeShowDay: highlightDays }); ... var dates = [new Date("1/1/2011"), new Date("1/2/2011")]; function highlightDays(date) { for (var i = 0; i < dates.length; i++) { if (date - dates[i] == 0) { return [true,'', 'TOOLTIP']; } } return [false]; }