Hello everyone.
I have this html page:
I would like javascript function check that:
date_1 = 24/04/2008
date_2 = 25/04/2008
it's right....
date_1 = 25/04/2008
date_2 = 24/04/2008
it's wrong....
Check that date_2 always higher date_1, it's possible?
I have this html page:
Code:
<html> <head> </head> <body> <select size="1" name="date_1" onChange="window.document.location='Tot.asp?date_2=24/04/2008&date_1='+this.options[this.selectedIndex].value;"> <option>select</option> <option value="11/03/2008">11/03/2008</option> <option value="12/03/2008">12/03/2008</option> <option value="13/03/2008">13/03/2008</option> <option value="14/03/2008">14/03/2008</option> <option value="17/03/2008">17/03/2008</option> </select> <select size="1" name="date_2" onChange="window.document.location='Tot.asp?date_1=24/04/2008&date_2='+this.options[this.selectedIndex].value;"> <option>select</option> <option value="11/03/2008">11/03/2008</option> <option value="12/03/2008">12/03/2008</option> <option value="13/03/2008">13/03/2008</option> <option value="14/03/2008">14/03/2008</option> <option value="17/03/2008">17/03/2008</option> </select> </body> </html>
date_1 = 24/04/2008
date_2 = 25/04/2008
it's right....
date_1 = 25/04/2008
date_2 = 24/04/2008
it's wrong....
Check that date_2 always higher date_1, it's possible?
Comment