Hey guys,
I’m trying to use JavaScript to update the value of a drop down list based on the value of another drop down list. What I need to do is this:
The first drop down list has 30 dates in it, ranging from 7 days in advance of today’s date up to 37 days in advance of today. This list is called “statedate”.
The second drop down list has 14 dates in it, ranging from 1 day to 14 days past the value of “startdate”. This list is called “enddate”.
I need the default value of startdate to be 7 days from today, and enddate to be 14 from the date of startdate. I need the list of dates in enddate to change whenever the user changes the date of startdate, with the user then able to change the value of enddate to anywhere within that 2 week span.
I’ve wrestled with trying to come up with a JavaScript to do this with no luck.
Any help?