I just missed something.
Very simple or the way I thought - using jquery - based on the value selected in the Workers drop-down list , I want to display only certain values in the Fruit options drop-down list .
So, for example, if Roy is selected from the Workers drop-down list , I want apples and peaches to be displayed as options in the Fruit options Drop If John is selected in the Workers drop-down list , only oranges, pears, peaches, nuts are displayed in the Fruit options dialog box .
How to correctly, using jquery, filter the Fruit Settings option based on the selection of the Work drop-down list?
My jfiddle is here : http://jsfiddle.net/justmelat/BApMM/1/
My code is:
<form method="post">
Worker: <select id="workers" name="Select1">
<option>Roy</option>
<option>John</option>
<option>Dave</option>
</select>
</form>
<br><br>
<form method="post">
Fruit Options: <select id="fruitopts" name="Select2">
<option>Apples</option>
<option>Oranges</option>
<option>Pears</option>
<option>Peaches</option>
<option>Grapes</option>
<option>Melons</option>
<option>Nut</option>
<option>Jelly</option>
</select></form>
source
share