I have two text boxes which is loaded with jquery masked date input.
<input type="text" id="frm_date" name="frm_date" />
<input type="text" id="to_date" name="to_date" />
With the help of masked input, the values are being separated by ‘/’ and taken something like 02/03/2011 .
I want to validate accurately that the TO date shouldn’t be lower than the from date, From date shouldn’t be greater than the TO date and both TO date and FROM date shouldn’t be equal by just giving an alert box to inform the user to correct the values.
What is the best way to do this ?
Do you want a datepicker? jsFiddle
Or with bare inputs: