Hi,
Try the beforeShowDay event:
$('#datepicker').datepicker({beforeShowDay: function(date) {
var day = date.getDay();
if (day == 4 // disable Thu) {
return [false, ''];
}
return [true, ''];
}});
Check the docs for an explanation:
http://jqueryui.com/demos/datepicker/#event-beforeShowDay
On Fri, Jun 5, 2009 at 6:14 AM, Magnus <[email protected]> wrote:
>
> I would like to have the datepicker restrict selection to a specific
> day of the week. Looking at the UI docs, nothing jumps out at me as an
> obvious way to do this. I am pretty sure this can be done but I am new
> to jQuery, so I need some help getting started.
>
> Thanks
> >
>
--
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, jqueryui, php, css, html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---