Reputation: 29427
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?
Upvotes: 6
Views: 7044
Reputation: 4544
$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });
Upvotes: 15