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

前端 未结 11 799
無奈伤痛
無奈伤痛 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:37

    For Saturday and Sunday You can do something like this

                 $('#orderdate').datepicker({
                                   daysOfWeekDisabled: [0,6]
                     });
    

提交回复
热议问题