如何排除周日......
我在下方添加了页面链接... Keith wood datepicker jquery
<link rel="stylesheet" type="text/css" href="css/jquery.datepick.css">
<script type="text/javascript" src="jquery.plugin.js"></script>
<script type="text/javascript" src="jquery.datepick.js"></script>
<script type="text/javascript">
// $("#from1").datepick({dateFormat: 'MM dd yyyy'});
$("#to").datepick({dateFormat: 'MM dd yyyy'});
$('#from1').datepick({
minDate: -1,
showTrigger: '#calImg',
dateFormat: 'MM dd yyyy'}
);
</script>
答案 0 :(得分:0)
您只需排除星期日:
$("#.datePicker").datepicker({
minDate: -1,
beforeShowDay: function(date) {
return [date.getDay() == 2] || [date.getDay() == 3] || [date.getDay() == 4] || [date.getDay() == 5] || [date.getDay() == 6] ||
}
})