Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.please to the link
jquery.mtz.monthpicker/jquery.mtz.monthpicker.js at master · lucianocosta/jquery.mtz.monthpicker · GitHub[^]
My Code::

function Disablemonth() {

$("#monthpick").monthpicker({
pattern: 'mm.yyyy'

});


$("monthpick").monthpicker('disableMonths', [06, 08, 11, 3]);

}

What I have tried:

i have tried but previous year i checked it will not change.
Posted
Comments
F-ES Sitecore 19-Feb-16 4:59am    
You might have to use the various events that fire before the day is shown to design on if you disable it

https://davidwalsh.name/jquery-datepicker-disable-days

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900