Time-Order Processing
$ (' #start '). Change (function () {
StartTime = $ (' #start '). Val ();
EndTime = $ (' #end '). Val ();
if ((StartTime > EndTime) && (endtime!= ""))
{
Dialog ({
Onshow:function () {
var obj = this;
This.content (' <span class= ' Text-danger ' > Start time cannot be greater than end time! </span> ');
SetTimeout (function () {obj.close ()}, 1500);
},
Quickclose:true
}). Show ();
$ (' #start '). Val ("");
}
});
$ (' #end '). Change (function () {
StartTime = $ (' #start '). Val ();
EndTime = $ (' #end '). Val ();
if ((StartTime > EndTime) && (endTime! = "")) {
Dialog ({
Onshow:function () {
var obj = this;
This.content (' <span class= ' Text-danger ' > End time cannot be less than the start time! </span> ');
SetTimeout (function () {obj.close ()}, 1500);
},
Quickclose:true
}). Show ();
$ (' #end '). Val ("");
}
});
Processing start time and end time succession issues