jQuery Datepicker 选择指定日期【转】
<div style="margin: 0px !important; padding: 0px 1em !important; border: 0px !important; font-size: 13px; vertical-align: baseline !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; background-image: none !important; background-color: white !important; float: none !important; height: auto !important; line-height: 14px; overflow: visible !important; text-align: left; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; white-space: pre !important;" class="line number1 index0 alt2">要求是日期只能选择每个月的1号,其它都不能选择。
$("#ReadBeginDate").datepicker({minDate:new Date(),beforeShowDay:noWeekendsOrHolidays});function nationalDays(date) { var d = date.getDate(); if(d > 1){ return ; } return ;}function noWeekendsOrHolidays(date) {//var noWeekend = jQuery.datepicker.noWeekends(date); return nationalDays(date);}
页:
[1]