» Forums
» The DHTML Calendar
» General discussion
» Not selectable dates
» Re: Not selectable dates
| Re: Not selectable dates ¶ | |
| Yes, this is possible. You have to provide a function that takes a date and returns that day's status, so that the calendar knows wether to disable it or not. Here's some sample code: function dateStatus(date) {Then you need to include this function at Calendar.setup(), like this: Calendar.setup({The calendar will call this function for each date in a month and, depending on the result, it will take an action on that date: if your function returns true then the date will be disabled, if it returns false then nothing happens and if it returns a string then that string will be appended to the date's CSS class, thus allowing you to have some “special | |
(*) Discounts available for the above products!













