下面我使用jquery切換顯示div。我需要添加什麼才能讓頁面加載時只有第一個結果處於活動狀態?修改jquery函數
$(document).ready(function(){
//Hide (Collapse) the toggle containers on load
$(".toggle_container").hide();
//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
$("h6.trigger").click(function(){
$(this).toggleClass("active").next().slideToggle("slow");
return false; //Prevent the browser jump to the link anchor
});
有沒有辦法讓第一場比賽動畫?這樣當頁面加載時它已經處於活動狀態 – mwimwi76 2011-02-10 22:08:43