I want to have my localized datepicker not allow certain dates picking.
Localization:
$(\"#datepicker\").datepicker($.datepicker.regional[\"fr\"]);
<
$.datepicker.regional
attribute attribute holds an array of localizations; which themselves are "presets" of the datepicker options. To append your options (overwriting if necessary):
// use $.extend to merge preset options plus your options
$("#datepicker1")
.datepicker($.extend({}, $.datepicker.regional.fr, {
beforeShowDay: $.datepicker.noWeekends
}));
// initialize the datepicker, then use .datepicker("option", options) method twice
$("#datepicker2")
.datepicker()
.datepicker("option", $.datepicker.regional.fr)
.datepicker("option", "beforeShowDay", $.datepicker.noWeekends);
Demo (see example 5)