选择日期
问题描述:
我有不同的层次来选择日期选择日期相对于分配给下面的客户优先级位交代选择日期
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
这里是我的代码 可以ANY1帮我实现这个functionlity
<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*/
});
};
我使用这个插件
答
从jQuery UI尝试DatePicker构件。如果我们有一个名为“maxDate”的选项,我们可以使用该选项设置最大可选日期。欲了解更多信息,请访问http://api.jqueryui.com/datepicker/#option-maxDate"
请尝试添加您试图修复您遇到的问题的选项。
适合你使用其他插件.. –
这里是必需的代码,即逻辑 插件正确choosen 我想到一些专业人士回答有点像bikash钱德拉无用的答案 – Sam
@surajmishra如果您使用的插件,那么为什么你要编辑。你会得到另一个更好的插件。只是谷歌它..... –