2014-01-09 155 views
-1

我有不同的层次来选择日期选择日期相对于分配给下面的客户优先级位交代选择日期

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*/ 
     }); 
    }; 

我使用这个插件

http://javascriptcalendar.org/javascript-date-picker.php

+0

适合你使用其他插件.. –

+0

这里是必需的代码,即逻辑 插件正确choosen 我想到一些专业人士回答有点像bikash钱德拉无用的答案 – Sam

+0

@surajmishra如果您使用的插件,那么为什么你要编辑。你会得到另一个更好的插件。只是谷歌它..... –

回答