Hi Daniel Sorry I did not reply sooner with a thanks. I just found your email today in my inbox.
I was wondering, where would I enter the info your provided? > $(".selector").datepicker({ beforeShowDay: $.datepicker.noWeekends }) > Yes, I do want to disable all weekends. Thank you again for your help. Best regards, Phil On Sun, Nov 23, 2008 at 12:28 PM, Daniel <dqmin...@gmail.com> wrote: > > Hi plee, > > to disable all Sunday: > > javascript: > $('#noSunday').datepicker({ > beforeShowDay: noSunday, > showOn: "both", > buttonImage: "templates/images/calendar.gif", > buttonImageOnly: true > }); > > function noSunday(date){ > var day = date.getDay(); > return [(day > 0), '']; > }; > > To disable any Saturday and Sunday , I assumed that you want to > disable all Saturday and Sunday , in this case , you can use the built- > in noWeekends option: > > $(".selector").datepicker({ beforeShowDay: $.datepicker.noWeekends }) > > > On Nov 23, 11:59 pm, plee <plee.w...@gmail.com> wrote: > > Hello > > > > Thank you for the jQuery date picker. > > > > Is there a way to disable all Sunday or any Saturday and Sunday? > > > > Thank you for everyone who has contributed. > > > > Best regards >