I want to be able to disable some bank holidays which take place every year for example Christmas but I also want to be able to disable days which only happen one year
This is my code I have already
var unavailableDates = ["25-12", "26-12", "1-1"];
function unavailable(date) {
dmy = date.getDate() + "-" + (date.getMonth() + 1);
if ($.inArray(dmy, unavailableDates) == -1) {
return [true, ""];
} else {
return [false, "", "Unavailable"];
}
}
function noWeekendsOrHolidays(date) {
var noWeekend = jQuery.datepicker.noWeekends(date);
return noWeekend[0] ? unavailable(date) : noWeekend;
}
Any body know how to do this?