I\'m making a holiday booking application and obviously you don\'t need to book off holidays that are already given to you, so I need to know how I can disable, Christmas, f
You have to use beforeShowDay attribute of DatePicker like below:
$("#textboxid").datepicker({ beforeShowDay: function(date) { var day = date.getDay(); return [day != 0,'']; } });
Above script will disable all Sundays.