i have 2 html <select> tags, let name them A and B
Now suppose A <select> tags got <options> d, f, g
now suppose B <select> tag is 'dependant' on A, example
if in A <option> d is selected, B will have <options> x, y , z
if in A <option> e is selected, B will have <options> H, i, j, k, l (notice the numuber of options difference)
How do i achieve this? i know one of the methods is to display the highest num of selection options(in this case, 5) and blank out(set to null) the values of the option when different option in A is selected but that would look unpresentable on the page.
Once the above problem is solve, then another question is related to above, suppose
<option value="h"> apple </option>
<option value="i"> orange </option>
<option value="j"> pear </option>
how do i change the "apple", "orange", and "pear" when the option changes??
Forgive my English and Thanks in advance to those who will help me.