Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?

前端 未结 11 692
無奈伤痛
無奈伤痛 2020-11-22 04:02

I use a datepicker for choosing an appointment day. I already set the date range to be only for the next month. That works fine. I want to exclude Saturdays and Sundays f

11条回答
  •  一生所求
    2020-11-22 04:50

    If you don't want the weekends to appear at all, simply:

    CSS

    th.ui-datepicker-week-end,
    td.ui-datepicker-week-end {
        display: none;
    }
    

提交回复
热议问题