Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

exclude weekends to be clickable on jQuery datepicker

I would like to prevent the user from clicking on saturdays/sundays (week-ends) when he selects a date using the jQuery UI datepicker widget.

Is there a way to accomplish this? If not, which are the alternatives ways to accomplish this?

like image 613
Lorenzo Avatar asked Nov 03 '10 23:11

Lorenzo


1 Answers

$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });

like image 118
RafH Avatar answered Sep 21 '22 02:09

RafH