Adrian Girling
11-12-2003, 03:47 PM
I am trying to write a form where one list of options changes depending on the selected option in another list. This without pressing submit. A good example is the www.easyjet.com site which offers a list of airports 'from'. When one is selected, the option list for 'to' limits itself to those airports linking with the 'from' airport selected.
There is a lot of source code on the easyjet site. I have managed to drill down into what I think is the relevant code, but when I try to rewrite it with new selection lists it just doesn't work.
I believe I need to use the 'onchange' function, but there must be a simple example somewhere, which I can look at to see how to do it?
I'd be most grateful if anyone can point me in the right direction. My apologies if it is somewhere obvious on this site and I have missed it.
Thanks for any help
Adrian
There is a lot of source code on the easyjet site. I have managed to drill down into what I think is the relevant code, but when I try to rewrite it with new selection lists it just doesn't work.
I believe I need to use the 'onchange' function, but there must be a simple example somewhere, which I can look at to see how to do it?
I'd be most grateful if anyone can point me in the right direction. My apologies if it is somewhere obvious on this site and I have missed it.
Thanks for any help
Adrian