<input class="input_calendar inputcss" id="startDate" runat="server" type="text"  
onfocus
="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')||\'2120-10-01\'}'})" style="height: 30px; width: 153px;"/>

 

<input class="input_calendar inputcss" id="endDate" runat="server" type="text"
onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}',maxDate:'2120-10-01'})"  style="height: 30px; width: 153px;"/>

开始日期不能大于结束日期,最容易出错的地方就是黄色背景部分,控件ID忘记设置。 maxDate 是最大日期范围。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案