Solved

Update 2nd Calendar based on 1st calendar input

Posted on 2012-04-04
4
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Move files based on file names? 8 68
Powershell- Registry HIVE 6 63
Fix button to stay disable until user checks a checkbox as well 2 22
Notepad++ Question 11 28
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to dynamically set the form action using jQuery.

751 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