Solved

Update 2nd Calendar based on 1st calendar input

Posted on 2012-04-04
4
224 Views
Last Modified: 2012-04-10
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
0
Comment
Question by:MahargNala
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 37806457
What calendar do you use? Jquery date picker?
0
 

Author Comment

by:MahargNala
ID: 37811570
Hi mplungjan,

currently using a plain JS calendar, not using Jquery at moment, unless this is a better one to use.
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 37811809
What is a plain JS calendar?


Code please


Yes, jQuery UI datepicker is one
http://www.ama3.com/anytime/ is another
0
 

Author Closing Comment

by:MahargNala
ID: 37828578
Thanks for the links, I found what I was looking for there.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web forms being filled out by bots 4 36
Grunt script for Build Process 1 29
how can i make 2 columns? 4 22
Html Table looping 4 13
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question