I am using the pickadate library so the user can select dates. All dates should be disabled by default. This works by adding disabled: [true]
.
var myPicker=$("#inputDatetime").pickadate(
{
format:"dd. mmmm yyyy",
formatSubmit:"yyyy-mm-dd",
min:dt,
selectYears:2,
close:"Schliessen",
today:"Heute",
selectMonths:!0,
disable: [true]
}
), picker = myPicker.pickadate("picker");
After this I am enabling some dates:
picker.set('disable', activeDays);
Now I want to be able to have blacklisted weekdays. For example all mondays and all wednesdays should always be blocked. I have this data in another variable:
var disabledDates = [1, 3];
How do I make sure the weekdays are disabled after that I enabled some specific dates?