我有以下(這很明顯,我不能這樣做!)打開一個盒子,關閉所有打開的
function dropBox() {
$("#reportWrapper a").bind("click", function(){
$("#reportWrapper a").each(function(i){
$(this).animate({
height: '20px'
}, 1000);
});
$(this).parents("div:eq(0)").animate({
height: '100px'
}, 1000);
});
}
我要的是打開一個被點擊並關閉所有打開的。盒子打開盒子,其他人不關閉。任何幫助非常感謝。 問候
你可以把一部分HTML代碼來幫助你嗎? – 2009-09-28 13:29:36