I have 2 choices. I want to change the dropdown options in the second choices based on what I select in the first choices. How to do this in jquery?
<select id="Manage"> <option value="a">A</option> <option value="b">B</option> <option value="c">C</option> <select>
Second choice if A is selected from the first choice
<select id='selectA'> <option value="1">1</option> <option value="2">2</option> </select>
Now, if B is selected from the first choice option
<select id='selectA'> <option value="3">3</option> <option value="4">4</option> </select>
jquery html select options
yogsma
source share