Pickadate.js How To Disable Every Sunday
I have a simple calendar set up to via pickadate.js. How can I disable every sunday on the calendar? I noticed it having a disable:[] in place but not sure how to specify a day $
Solution 1:
Documents says
//Using integers representing days of the week (from1to7):
$('.datepicker').pickadate({
disable: [
1, 4, 7
]
})
so if you want to disable sunday then:
$('.datepicker').pickadate({
weekdaysShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
showMonthsShort: true,
disable: [7]
});
Post a Comment for "Pickadate.js How To Disable Every Sunday"