jQuery UI Datepicker - Disable specific days

前端 未结 6 2138
予麋鹿
予麋鹿 2020-11-29 03:20

Is there any (easy) way to set the jQuery UI Datepicker to disallow selection of specific, predetermined days?

I was able to get this approach working, however, it p

6条回答
  •  误落风尘
    2020-11-29 03:44

    Have you tried declaring natDays properly with the 'var' keyword in front?

    Also - you have an extra comma at the end of your natDays definition.

    natDays[i][2] won't work as your the arrays only have 2 items in them - try just ''

    Additionally, you'll want to set your beforeShowDay function name correctly - doesn't look like it's even calling your custom function

提交回复
热议问题