开发者

how to disable the holidays and saturdays and sundays from jquery calendar in asp.net?

开发者 https://www.devze.com 2023-03-22 09:16 出处:网络
in my application using jquery date picker,my problem is in ui customer select the date , customer select the weekends(satua开发者_Go百科rdays, sundays) and USA holidays(01-01-2011 etc- but year chang

in my application using jquery date picker,my problem is in ui customer select the date , customer select the weekends(satua开发者_Go百科rdays, sundays) and USA holidays(01-01-2011 etc- but year changed based on pc date) disabled (not selected). i am writing code like this

$(function () {
$('#txtPaymentDate').datepick({ onDate: $.datepick.noWeekends, showTrigger: '#calImg'
});
});


$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });

From the docs: http://docs.jquery.com/UI/Datepicker/noWeekends

0

精彩评论

暂无评论...
验证码 换一张
取 消