The requirement is to hide the msc tr and show the bsc tr when the Undergraduate Program Option is selected. When Postgraduate program option is selected the bsc tr should be hidden and msc tr should be there. Thank you in advance!
<tr>
<td>Select Program</td>
<td>
<select name="prog" id="prog">
<option value="0">Undergraduate Program</option>
<option value="1">Postgraduate Program</option>
</select>
</td>
</tr>
<tr id="msc">
<td>Masters : </td>
<td>
<select name="major" id="major">
<option>MSC</option>
<option>MSC2</option>
</select>
</td>
</tr>
<tr id="bsc">
<td>Bachelors : </td>
<td>
<select name="major" id="major">
<option>BSC</option>
<option>BSC2</option>
</select>
</td>
</tr>
3
Answers
You can try the following way:
Use the following code
use the code its help you to do what you want