Hi plee,
to disable all Sunday:
javascript:
$('#noSunday').datepicker({
beforeShowDay: noSunday,
showOn: "both",
buttonImage: "templates/images/calendar.gif",
buttonImageOnly: true
});
function noSunday(date){
var day = date.getDay();
return [(day > 0), ''];
};
To disable any Saturday and Sunday , I assumed that you want to
disable all Saturday and Sunday , in this case , you can use the built-
in noWeekends option:
$(".selector").datepicker({ beforeShowDay: $.datepicker.noWeekends })
On Nov 23, 11:59 pm, plee <[EMAIL PROTECTED]> wrote:
> Hello
>
> Thank you for the jQuery date picker.
>
> Is there a way to disable all Sunday or any Saturday and Sunday?
>
> Thank you for everyone who has contributed.
>
> Best regards