jquery datepicker注意使用startdate值设置enddate [英] jquery datepicker mindate set enddate with startdate value
问题描述
我在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 theminDate
[^] property of theDatePicker
.
这篇关于jquery datepicker注意使用startdate值设置enddate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!