Javascript 根据成员级别和优先级从数据采集器中选择日期

Javascript 根据成员级别和优先级从数据采集器中选择日期,javascript,php,jquery,ajax,Javascript,Php,Jquery,Ajax,我可以从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 这是我

我可以从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*/
        });
    };
我正在使用这个插件


从jQueryUI尝试DatePicker小部件。其中有一个名为maxDate的选项,我们可以使用它设置最大可选择日期。欲了解更多信息,请访问


请尝试包含您试图解决所面临问题的选项。

使用其他适合您的插件。.这里需要代码,即逻辑插件选择正确。我希望一些专业人士的回答与bikash chandra的回答类似answer@surajmishra如果您使用的是插件,那么为什么要编辑。你会得到另一个更好的插件。只需谷歌就可以了……为什么要编辑它,在php上的关联数组中加载这些属性并执行类似yearsRange的操作并不容易?这个范围是使用上述规则创建的。请正确阅读问题,谷歌中没有成员级别的选择,这就是为什么我在这里发布以获得支持。