My code is:
<select name='main'> <option>Animals</option> <option>Food</option> <option>Cars</option> </select> <select name='other'> <option>Rats</option> <option>Cats</option> <option>Oranges</option> <option>Audi</option> </select>
How to filter the second <select> , so it will only show the elements that I want, for example. if I select "Animals", my choice will be:
<select name='other'> <option>Rats</option> <option>Cats</option> </select>
and if I <select> "Food", my <select> will look like this:
<select name='other'> <option>Oranges</option> </select>
Well, I hope you understand this idea. Thanks.
source share