Click to See Complete Forum and Search --> : How to link two select statements


ashas
10-30-2003, 09:02 PM
Hello,

I have posted a thread on this topic before and the response i received seemed fairly chunky...so i've changed my requirement a little in the hope that there is a simpler solution..

I have 2 select boxes.

select box 1 contains the options A,B
select box 2 contians the options 1,2,3

what i would like is when a user selects option A from select box one then option 2 in select box 2 will be greyed out and they will not be able to select it..

when the user selects option B from select box 1 then ALL options in selct box 2 should be available to them..

hoping there is a straight forward piece of javascript out there for this?

Thanks in advance!

Asha

Fang
10-31-2003, 09:20 AM
This will not work with IE, you can only disable the whole select list and not just a single option.