jQuery(function ($) { // 1 = monday, 2 = tuesday, 3 = wednesday, 4 = thursday, // 5=friday, 6 = saturday, 0=sunday var daysToDisable = [0, 6]; $('#wpforms-1246').datepicker({ minDate:0, beforeShowDay: disableSpecificWeekDays }); function disableSpecificWeekDays(date) { var day = date.getDay(); for (i = 0; i if ($.inArray(day, daysToDisable) != -1) { return [false]; } } return [true]; } });