所以我有 3 个选择输入字段,我想知道是否可以在选择其他选项后禁用它们。IE:
<tr id="row1">
<th>Row 1</th>
<td>
<select>
<option value="1">1</option>
<option value="2" selected>2 selected so 1+3 are disabled</option>
<option value="3">3</option>
</select>
</td>
</tr>
<tr id="row2">
<th>Row 2</th>
<td>
<select>
<option value="1" selected>1 selected 2+3 are disabled</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</td>
</tr>
<tr id="row3">
<th>Row 3</th>
<td>
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3 (you get it...)</option>
</select>
</td>
</tr>