Update 2nd Calendar based on 1st calendar input

Hi,

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.......

Thanks
MahargNalaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
What is a plain JS calendar?


Code please


Yes, jQuery UI datepicker is one
http://www.ama3.com/anytime/ is another
0
 
Michel PlungjanIT ExpertCommented:
What calendar do you use? Jquery date picker?
0
 
MahargNalaAuthor Commented:
Hi mplungjan,

currently using a plain JS calendar, not using Jquery at moment, unless this is a better one to use.
0
 
MahargNalaAuthor Commented:
Thanks for the links, I found what I was looking for there.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.