Disable Saturday and Sundays in Datepicker

If you want to disable the weekend day from date picker you have following ways
1) For jQueryUI DatePicker, it has an option to disable weekends day which you can use to explicitly not allow Weekends to be selected :

   beforeShowDay: $.datepicker.noWeekends

2) Hide Saturday Sunday

/* Hide saturday/sunday in the jQueryUI DatePicker */
td.ui-datepicker-week-end {
    display: none;

Leave a Reply

Your email address will not be published. Required fields are marked *