如何使用 Struts2+ Jquery 验证开始日期和结束日期,其中结束日期应大于开始日期。我有以下片段
<div class="fb_pbdate">
<label>Start Date<span>*</span></label><span>
<sj:datepicker name="date" id="startdate" value="%{new java.util.Date()}"
displayFormat="dd/mm/yy" timepicker="true" timepickerShowSecond="false"
timepickerSecondText="false" timepickerFormat="hh:mm"
minDate="0" readonly="true" />
<span id="start_ht1" class="fb-error"></span></span>
</div>
<div class="fb_pbdate">
<label>Due Date<span>*</span></label><span>
<sj:datepicker name="enddate" id="enddate" value="%{new java.util.Date()}"
displayFormat="dd/mm/yy" timepicker="true" timepickerShowSecond="false"
timepickerSecondText="false" timepickerFormat="hh:mm"
minDate="0" readonly="true" />
<span id="enddate_ht2" class="fb-error"></span></span>
</div>