【发布时间】:2016-05-13 14:20:45
【问题描述】:
我希望在页面加载时折叠所有标签。现在第一个默认打开:
$(document).ready(function($) {
$('#forms').find('.forms-toggle').click(function(){
//Expand or collapse this panel
$(this).next().slideToggle('fast');
//Hide the other panels
$(".forms-content").not($(this).next()).slideUp('fast');
});
});
HTML 和 CSS 在这里:
【问题讨论】:
标签: javascript jquery tabs accordion