我有各种级别从datepicker中选择日期,相对于分配给下面客户的优先级是位解释
Member with level 1 can select dates from today till 5 more upcoming days
member with level 2 can select till 10 th days from now
member with level 5 can select till next months days from now
这是我的代码 可以帮助我实现这个功能
<script type="text/javascript">
window.onload = function(){
new JsDatePick({
useMode:2,
target:"inputField",
limitToToday:false,
dateFormat:"%d-%M-%Y"
/*selectedDate:{ This is an example of what the full configuration offers.
day:5,For full documentation about these settings please see the full version of the code.
month:9,
year:2006
},
yearsRange:[1978,2020],
limitToToday:false,
cellColorScheme:"beige",
dateFormat:"%m-%d-%Y",
imgPath:"img/",
weekStartDay:1*/
});
};
我正在使用这个插件
答案 0 :(得分:0)
从jQuery UI尝试DatePicker Widget。我们有一个名为“maxDate”的选项,我们可以使用它来设置最大可选日期。有关详细信息,请访问http://api.jqueryui.com/datepicker/#option-maxDate"
请尝试添加您尝试解决问题的选项。