$(...).datepicker({ ... beforeShowDay: function(dt) { return
(dt.getDay() == 1) ? [true, ""] : [false, ""] }, ... });

This snippet adds an anonymous function to the beforeShowDay
event...the event takes a date parameter.  You can examine the date
and decide what to do with that date cell accordingly.  In this case,
if the day of the week is 1 (Monday) then it will make the cell
selectable.

Return an array where the [0] value is true for selectable and false
for non-selectable, and the [1] is a className to be added to the
element.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to