jquery datepicker注意使用startdate值设置enddate [英] jquery datepicker mindate set enddate with startdate value

查看:115
本文介绍了jquery datepicker注意使用startdate值设置enddate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在mvc4中有webgrid,并且有startdate和enddate列。当我选择编辑模式时,datepicker将在enddate列。



datepicker mindate应该是startdate列值。例如,默认值为startdate的DB为2015年3月3日,endate为2015年4月15日。当我在编辑时选择EndDate列中的日期选择器...心智应该大于或等于2015年3月3日。



立即需要解决方案线.. 。



提前致谢...

解决方案

非常简单。您需要设置 minDate [ ^ ] DatePicker的属性

Hi,

I have webgrid in mvc4, and having startdate and enddate columns. When I select the edit mode and datepicker will be at enddate column.

The datepicker mindate should be the startdate column value. For example,by default values from DB of startdate is 3-Mar-2015 and endate is 15-Apr-2015. When i select the datepicker in EndDate column while editing... The mindate should be greater than or equal to 3-Mar-2015.

Need solution line immediately...

Thanks in advance...

解决方案

Very easy. You need to set the minDate[^] property of the DatePicker.


这篇关于jquery datepicker注意使用startdate值设置enddate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆