我想禁用td
此内容'CLICKING MUST BE DISABLE'并单击'CLICK HEAR 1'可以正常工作,但不能正常工作'CLICK HEAR 2'
查询:
$("#chart tr:odd").addClass("odd");
$("#chart tr.odd").click(function()
{
$(this).next("tr").toggle();
});
HTML:
<table id="chart">
<tbody>
<tr class="odd">
<td height="25" width="200px"><b>TABLE 1</b> </td>
<td colspan="6">CLICKING MUST BE DISABLE</td>
</tr>
<tr class="odd">
<td style="padding-right: 30px;" width="100px"></td>
<td style="background-color: rgb(237, 237, 237);" width="200px">CLICK HEAR 1</td>
<td height="25">
</td>
</tr>
<tr style="display: none;">
<td></td>
<td colspan="4">
sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>
</td>
</tr>
<tr class="odd">
<td height="25" width="200px"><b>TABLE 2</b> </td>
<td colspan="6">CLICKING MUST BE DISABLE</td>
</tr>
<tr>
<td style="padding-right: 30px;" width="100px"></td>
<td style="background-color: rgb(237, 237, 237);" width="200px">CLICK HEAR 2</td>
<td height="25">
</td>
</tr>
<tr class="odd" style="display: none;">
<td></td>
<td colspan="4">
sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>sssss<br>
</td>
</tr>
</tbody>
</table>