我有3個HTML塊作爲波紋管,切換顯示
<table class="">
<tr>
<td>
<a class="breakdown" href="#">test</a>
<div style="display: none;padding: 10px;" class="breakdown_details">
<br/>content here2<br/>
</div>
</td>
</tr>
<tr>
<td>
<a class="breakdown" href="#">test</a>
<div style="display: none;padding: 10px;" class="breakdown_details">
<br/>content here3
</div>
</td>
</tr>
</table>
最初測試環節被顯示,但div的內容不顯示,當我點擊則對應的div是測試環節打開滑動並執行切換Acton。我用下面的腳本,但不能正常..
$('.breakdown').click(function(){
$(this).next(".breakdown_details").slideToggle("slow", function(){
});
});
非常感謝! ** Deif ** – 2013-02-10 12:08:03