Reply To: Form functionality question


That function does in fact control the date but the math is incorrect. If I add +86400*7 and select 01 March 2015 as checkin, the check out date changes to 16 June 3676. So it’s adding about 1660 years.

Any idea what the correct math would be?


Edit: As a reference for other users who may want similar functionality, what worked for me is to replace the code referenced above with this:

date2 = date;
dates.not( this ).datepicker( "option", option, date2 );