Hi, You can use the 'beforeShowDay' option of the datepicker to restrict any day or day of the week based upon the result of a function.
So - to not allow selection of Sundays try this:
$('#noSundays').datepicker(
{
beforeShowDay: function(date){
if (date.getDay() == 0){
return [false,''];
} else {
return [true, ''];
}
}
}
);
Cheers,
Gus
On Thu, Jan 14, 2010 at 12:50 PM, dustingtaylor <[email protected]>wrote:
> Is there anyway to restrict certain days from being picked... for
> example, not allowing Sunday's to be picked?
>
> --
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<jquery-ui%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>
>
-- You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.
