Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 21, 2004, 8:57 am
rate this thread
This must be easy, but I've struggled for a night now to get it working!
Basically, I want a system for a holiday site, whereby you select a FROM
date (a SELECT of 1-31), upon selecting a value from this SELECT it will
changed the currently selected option from a second SELECT (also populated
with 1-31), BUT it will first add 7 (i.e. days)...
...e.g. if I were to select '4' from the first dropdown, the second would
automatically go to '11'.
Other issues here though are of course the Month and Year dropdowns, should
the user select a START date that will mean the TO date would be in the
proceeding month, I need to automatically move the SELECT box of the TO
MONTH onto the next option?
Checkout the feature working here on www.lastminute.com - I even attempted
to look at their code, but its done via a series of complex functions, I
need something a little simpler.
Basically, I need a summary of how to change/read/alter selected for the
SELECT object, and although I've searched everywhere, I've turned up nothing
thats at all useful.
Appreciate your help!
April 21, 2004, 12:35 pm
Re: Selection from One SELECT changes selected option of another SELECT?
It's not simple, but not that complex either.
days worth of mSec and then use getDate,getMonth and getYear to find the
with a little Googling.
- — Next thread in » HTML Markup Language