Disable Array of Dates in Datepicker jQuery
How to disable days from jquery ui datepicker. A Simple solution to block out dates.
This is a code snippet on how to blockout dates for the jquery ui datepicker.
var array = ["2013-03-14","2013-03-15","2013-03-16"]
$('input').datepicker({
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('yy-mm-dd', date);
return [ array.indexOf(string) == -1 ]
}
});
Read Full Article: https://stackoverflow.com/questions/15400775/jquery-ui-datepicker-disable-array-of-dates