Hey Massimo,

You are going to want to find the noWeekends function in the date
picker script:

noWeekends: function(date) {
        var day = date.getDay();
        return [(day > 0 && day < 6), ''];
},

You are going to need to make a new function specifying the days you
want to keep. In my case I just wanted to keep Saturdays, so I wrote:

onlySaturday: function(date) {
        var day = date.getDay();
        return [(day > 5 && day < 7), ''];
},

You then just need to call the function in your jquery:

$(".datepicker").datepicker({
        beforeShowDay: $.datepicker.onlySaturday
});

On Aug 11, 2:05 am, ramiro <[email protected]> wrote:
> Hello, this seems pretty basic, but i can't seem to find any
> documentation on it.
>
> Using datepicker, I'm basically looking to have any dates on Monday
> and sunday un-selectable. As my business is closed on those days.  Can
> anyone help me with this.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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