<table id="main_table">
<tr style="background-color:green; color:white">
<td class="flip"> Section 1 </td>
</tr>
<tr>
<td>
<table class="section">
<tr>
<td>item 111</td>
<td>item 112</td>
<td>item 113</td>
<td>item 114</td>
</tr>
</table>
</td>
</tr>
</table>
$('.flip').click(function() {
$(this)
.closest('table')
.next('.section')
.toggle('fast');
});
有人可以幫我糾正上面的代碼 我試過的slideToggle但不知道爲什麼它不工作的jQuery的slideToggle桌子上
感謝
他改變了答案,反正很多人都可以給相同的答案,時間差異很小 – Adil