如果我从第一个选择框中选择硕士学位选项,那么在第二个选择框中它将仅显示 MBA/金融和 MBA/市场营销选项,从第三个选择框中它将显示学士学位、硕士学位和博士学位。现在,如果我从第一个选择框中选择学士学位选项,那么在第二个选择框中它将仅显示 BCJ/Law Enforcement 和 BCJ/Corrections 选项,从第三个选择框中它将显示所有选项。我做了一些代码,但它不起作用。
<select id="degree">
<option value="default">Choose a degree</option>
<option value="Master">Master Degree</option>
<option value="Bachelor">Bachelor Degree</option>
<select id="program">
<option value="default">Choose a program</option>
<option value="MBA/FN" Degree="Master">MBA/Finance</option>
<option value="MBA/MK" Degree="Master">MBA/Marketing</option>
<option value="BCJ/LE" Degree="Bachelor">BCJ/Law Enforcement</option>
<option value="BCJ/COR" Degree="Bachelor">BCJ/Corrections</option>
<select id="level">
<option selected="selected" value="">Choose Highest level of Education</option>
<option value="Less than 2 years of college">Less than 2 years of college</option>
<option value="2 or more years of college">2 or more years of college</option>
<option value="Associate Degree">Associate Degree</option>
<option value="Bachelor Degree">Bachelor Degree</option>
<option value="Master Degree">Master Degree</option>
<option value="Doctorate Degree">Doctorate Degree</option>