Wdatepicker use of Time controls
1. js that references the Wdatepicker control
<seript src= ". /.. /js/my97datepicker/wdatepicker.js ">
2. To make the end time greater than the start time, or you cannot select a value that is greater than the current date
This is controlled by an expression: the control conditions are as follows:
Start Time Control:
<input id= "StartDate" type= "text" onfocus= "Wadepicker ({skin: ' Whygreen ', maxdate: ' #F {$dp. $D (\ ' enddate\ ')} '})" >;
End Time Control:
<input id= "EndDate" type= "text" onfocus= "Wadepicker ({skin: ' Whygreen ', mindate: ' #F {$dp. $D (\startdate\ ')} ', MaxDate: '%y-%m-%d '}) ' >;
Note: StartDate is the id,enddate of the start time control is the ID of the end time control
Here MinDate () and maxdate () are used to determine the reasonable selection of the date control.
Wdatepicker use of Time controls