jQuery UI日期选择器(从星期一开始的几周)
问题描述:
我正在使用jQuery UI datepicker,我知道我可以通过以下方式自定义此datepicker:
I am using jQuery UI datepicker, I know I can customize this datepicker in this way:
$("#reserve_date").datepicker({
beforeShowDay: no_disabled_Days
});
目前,我的数据选择日历从星期日开始数周,我想从星期一开始数周,怎么办?
currently, my datapicker calendar start weeks from Sunday, I would like it starts weeks from Monday, how to do??
答
$( ".selector" ).datepicker({ firstDay: 1 });
jQuery UI参考;请参阅该链接以获取更详细的说明.
jQuery UI Reference; see the link for a slightly more detailed explanation.
有关内联参考:
Sunday 0
Monday 1
Tuesday 2
Wednesday 3
Thursday 4
Friday 5
Saturday 6