我有一个表,其中每行中的一列包含相同的<select>
选项,如下所示:
<tr>
....
<td>..</td>
<td>
<select id="gender">
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</td>
</tr>
<tr>
....
<td>..</td>
<td>
<select id="gender">
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</td>
</tr>
<tr>
....
<td>..</td>
<td>
<select id="gender">
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</td>
</tr>
假设我目前正在处理第二行,如何禁用第三行的选项?