jQuery选项卡/手风琴
我使用下面的脚本在桌面上的标签和手机上的手风琴。我想添加一种可能性,即在第二次单击时关闭手风琴选项卡,但我不知道如何关闭。请帮忙。:-)jQuery选项卡/手风琴,jquery,tabs,accordion,Jquery,Tabs,Accordion,我使用下面的脚本在桌面上的标签和手机上的手风琴。我想添加一种可能性,即在第二次单击时关闭手风琴选项卡,但我不知道如何关闭。请帮忙。:-) /* if in drawer mode */ $(".tab_drawer_heading").click(function() { $(".tab_content").hide(); var d_activeTab = $(this).attr("rel
/* if in drawer mode */
$(".tab_drawer_heading").click(function() {
$(".tab_content").hide();
var d_activeTab = $(this).attr("rel");
$("#"+d_activeTab).fadeIn();
$(".tab_drawer_heading").removeClass("d_active");
$(this).addClass("d_active");
$("ul.tabs li").removeClass("active");
$("ul.tabs li[rel^='"+d_activeTab+"']").addClass("active");
});
/* Extra class "tab_last"
to add border to right side
of last tab */
$('ul.tabs li').last().addClass("tab_last");