|
Complete novice needs a steer with HTML input form using javascript
Can someone give me a steer in the right direction.
I have an HTML form that requires two dates to be entered. Date 1 containes the current date and date 2 is set to the current date + 1, 2, 3 or 4 years in the future less 1 day. Dates are UK format dd/mm/yyyy. This is done with a PHP script on the serverside.
e.g.
Date 1: 02/11/2012 Date 2: 01/11/2016
If the user changes date 1: to say 02/06/2012 I would like to set the second date to 01/06/2016. Can this be done in javascript.
(You can probably guess I'm a complete novice when it comes to javascript Many thanks in advance)
|