Re: HTML_QuickForm2: select boxes that depend on each other

From: Date: Wed, 19 Dec 2012 14:50:36 +0000
Subject: Re: HTML_QuickForm2: select boxes that depend on each other
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31683@lists.php.net to get a copy of this message
Hi, > I've got a form with 2 select boxes, say "color" and "shade". > The selectable values in the "shade" select box change whenever a > different color is selected: > > color="green" -> available shades: "light green" and "dark > green" > color="blue" -> available shades: "light blue" and "dark > blue" > > The problem I have now is that I don't know how to pre-fill the values > of the second select box depending on the values of the first when > building the form. I completely forgot to tell you that I use javascript to change the values of the shade select box when the color select box is changed. -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

« previous php.pear.general (#31683) next »