i tried to disable months using jquery.mtz.monthpicker.js, but it disables specific months for all years, i want to disbale months of specific year.
My Code::
function Disablemonth() {
$("#monthpick").monthpicker({
pattern: 'mm.yyyy'
});
$("monthpick").monthpicker('disableMonths', [06, 08, 11, 3]);
}
Amit Kumar SinghPosted Feb 19, 2016, 4:52 AM
beforeShowDay: function(date) {
var month = date.getMonth()+1; // +1 because JS months start at 0
var day = date.getDate();
return [!(month == 8), ""];
}
});