Hi, I am wondering if this is possible.
I have a form for booking a hotel room. The form has a field for Arrival and one for Departure. Each of these fields has a jquery datepicker that allows the user to easily select the date. The date is then outputted in the following format: 02/02/2012.
I want to be able to compare the 2 fields and if the Departure is before the Arrival, display an error.
Any help would be appreciated as I'm not really sure where to start.
Thanks in advance.
I should add that I am using the Couch form field functions.
I have a form for booking a hotel room. The form has a field for Arrival and one for Departure. Each of these fields has a jquery datepicker that allows the user to easily select the date. The date is then outputted in the following format: 02/02/2012.
I want to be able to compare the 2 fields and if the Departure is before the Arrival, display an error.
Any help would be appreciated as I'm not really sure where to start.
Thanks in advance.
I should add that I am using the Couch form field functions.