How to disable the already selected date for next date box in J.T.Sage DateBox

巧了我就是萌 提交于 2019-12-02 04:43:27

Hope this helps you : http://jsfiddle.net/QTuma/52/

Just change in the logic for difference calculation:

Start Date
// Get the difference
          var diff = parseInt((((startDate.getTime() - todaysDate.getTime()) / lengthOfDay)+2)*-1,10); 

And End Date

 // Get the difference
          var diff = parseInt((((endDate.getTime() - todaysDate.getTime()) / lengthOfDay)),10); 

This will work for the statement 'example my start date is like 13.08.14 my end date box fields need to select after 13.08.14 .'

I have updated your code based on below reference,

http://jsfiddle.net/ktbcP/528/

This should solve your issue,

http://dev.jtsage.com/jQM-DateBox/doc/6-2-link/

Hope it helps !!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!