如何在jQuery月份选择器中禁用特定年份的特定月份 [英] How to disable specific months of a particular year in jquery month picker

查看:183
本文介绍了如何在jQuery月份选择器中禁用特定年份的特定月份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用jquery.mtz.monthpicker.js禁用月份,但是它禁用了所有年份的特定月份,我想取消特定年份的月份.请访问链接
jquery.mtz.monthpicker/jquery.mtz.monthpicker.js在主站点· lucianocosta/jquery.mtz.monthpicker·GitHub [ 模式:"mm.yyyy"

});


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

}

我尝试过的事情:

我已经尝试过,但是去年我检查过它不会改变.

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.

推荐答案

(#monthpick").monthpicker({
模式:"mm.yyyy"

});


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

});



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

}

我尝试过的事情:

我已经尝试过,但是去年我检查它不会改变.
("monthpick").monthpicker(''disableMonths'', [06, 08, 11, 3]);

}

What I have tried:

i have tried but previous year i checked it will not change.


这篇关于如何在jQuery月份选择器中禁用特定年份的特定月份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆