I have 6 different Items:
Type1Item1
Type1Item2
Type1Item3
Type2Item1
Type2Item2
Type2Item3
of 2 different types:
Type1
Type2
I want to provide 2 DropDownLists: one to select a type, another to select items of the selected type.
Writing just
<select name="ItemTypeSelector" id="ItemTypeSelector">
<option value="Type1">Type1</option>
<option value="Type2">Type2</option>
</select><br>
<select name="ItemSelector" id="ItemSelector">
<option value="Type1Item1">Type1Item1</option>
<option value="Type1Item2">Type1Item2</option>
<option value="Type1Item3">Type1Item3</option>
<option value="Type2Item1">Type2Item1</option>
<option value="Type2Item2">Type2Item2</option>
<option value="Type2Item3">Type2Item3</option>
</select><br>
Would allow users to select Type2 and Type1Item3 which does not make sense since Type1Item3 is of type Type1.
QUESTION: Is there a way to display Items of the drop down list related to the selected ItemType?