Solved

Update 2nd Calendar based on 1st calendar input

Posted on 2012-04-04
4
221 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

758 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now