I would like to prevent the user from clicking on saturdays/sundays (week-ends) when he selects a date using the jQuery UI datepicker widget.
我希望防止用户在周六/周日(周末)使用jQuery UI datepicker小部件选择日期时单击。
Is there a way to accomplish this? If not, which are the alternatives ways to accomplish this?
有办法做到这一点吗?如果没有,有哪些替代方法可以实现这一目标?
1 个解决方案
#1
13
$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });
$(" # datepicker”)。datepicker({ beforeShowDay:.datepicker美元。noWeekends });
#1
13
$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });
$(" # datepicker”)。datepicker({ beforeShowDay:.datepicker美元。noWeekends });