roxii
12-20-2005, 09:11 AM
I'm trying to create a little script that adds a new SELECT form element when an item is selected on the first one.
<select name="colors">
<optgroup label="Choose a Color">
<option name="red">Red</option>
<option name="green">Green</option>
<option name="blue">Blue</option>
</optgroup>
</select>
For instance, if someone selects Green, another select list appears below the first one.
<select name="colors">
<optgroup label="Choose a Color">
<option name="red">Red</option>
<option name="green">Green</option>
<option name="blue">Blue</option>
</optgroup>
</select>
For instance, if someone selects Green, another select list appears below the first one.