gpt4 book ai didi

javascript - jQuery UI 日期选择器 : Block off the next 3 business days

转载 作者:行者123 更新时间:2023-11-28 01:39:17 25 4
gpt4 key购买 nike

我使用以下代码从 jQuery UI 日期选择器中屏蔽所有星期日。我还想在今天和从今天起的接下来的 3 个工作日内停止工作。有人知道如何做到这一点吗?

$("#pick-delivery-date").datepicker({
dateFormat: 'yy-mm-dd',
altField: "#selected-delivery-date",
altFormat: "DD, d MM, yy",
beforeShowDay: function(date){
var day = date.getDay();
return [(day != 0), ''];
}
});

最佳答案

如何使用 minDate 选项,例如...

{ 最短日期:+3 }

关于javascript - jQuery UI 日期选择器 : Block off the next 3 business days,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21125050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com