Update 2nd Calendar based on 1st calendar input
Posted on 2012-04-04
I have 2 calendar entries in a form. What I am trying to achive is when a user selects a date from calendar 1 then calendar 2 will populate with a date 365 days ahead.
The 2nd calendar will still need to show so it's not as simple as just saying add 365 days to the date in a bit of code when the form is submitted, as the user may need to select a date less than the 365 days in the 2nd calendar.
so basically if user selects date of 04/04/2012 in calendar 1, calendar 2 will populate with 04/04/2013, however user may amend 2nd calendar from 04/04/2013 to something like 01/04/2013
Can anyone help with this please.......