如果我想在选择 1 时表将仅显示 tr 1 而当我选择 2 时它将显示 tr 2 等,如何实现 jquery?
<select name="select_main_table">
<option value="1" selected="selected">Show line 1</option>
<option value="2" >Show line 2</option>
<option value="3" >Show line 3</option>
</select>
<table id="main_table">
<tr id="show1"><td>line 1</td><td<line 1/td></tr>
<tr id="show2"><td>line 2</td><td<line 2/td></tr>
<tr id="show3"><td>line 2</td><td<line 2/td></tr>
</table>
提前致谢?