如题,做项目时,需要设置起止日期。
遇到非工作日就不能选取,这种需求怎么实现呢?用了 jquery-ui 的 datepicker
keywords: jquery ui datepicker disable weekend
http://stackoverflow.com/questions/501943/can-the-jquery-ui-datepicker-be-made-to-disable-saturdays-and-sundays-and-holid
$("#datepicker").datepicker({
beforeShowDay: $.datepicker.noWeekends //设置不可选日期
});