E
evanburen
I have 2 selectboxes and I want to change the values in the second
based on the first one. I found a few examples of this but none of
them quite do what I want. Could someone get me started on this or
point me to an example? Thanks
Box 1:
<SELECT name="ddlAvailable">
<option value="A,B,C,D,E">All Sections</option>
<OPTION VALUE = "A,B,C">A,B,C</Option>
<OPTION VALUE = "A">A</Option>
<OPTION VALUE = "D,E">D,E</Option>
<OPTION VALUE = "F">F</Option>
</SELECT>
Box 2:
If 'All Sections' is selected in ddlAvailable then
<SELECT name="ddlSelected">
<option value="A">Section A</option>
<option value="B">Section B</option>
<option value="C">Section C</option>
<option value="D">Section D</option>
<option value="E">Section E</option>
</SELECT>
If 'A,B,C' is selected in ddlAvailable then
<SELECT name="ddlSelected">
<option value="A">Section A</option>
<option value="B">Section B</option>
<option value="C">Section C</option>
</SELECT>
If 'A' is selected in ddlAvailable then
<SELECT name="ddlSelected">
<option value="A">Section A</option>
</SELECT>
etc..
based on the first one. I found a few examples of this but none of
them quite do what I want. Could someone get me started on this or
point me to an example? Thanks
Box 1:
<SELECT name="ddlAvailable">
<option value="A,B,C,D,E">All Sections</option>
<OPTION VALUE = "A,B,C">A,B,C</Option>
<OPTION VALUE = "A">A</Option>
<OPTION VALUE = "D,E">D,E</Option>
<OPTION VALUE = "F">F</Option>
</SELECT>
Box 2:
If 'All Sections' is selected in ddlAvailable then
<SELECT name="ddlSelected">
<option value="A">Section A</option>
<option value="B">Section B</option>
<option value="C">Section C</option>
<option value="D">Section D</option>
<option value="E">Section E</option>
</SELECT>
If 'A,B,C' is selected in ddlAvailable then
<SELECT name="ddlSelected">
<option value="A">Section A</option>
<option value="B">Section B</option>
<option value="C">Section C</option>
</SELECT>
If 'A' is selected in ddlAvailable then
<SELECT name="ddlSelected">
<option value="A">Section A</option>
</SELECT>
etc..