我有以下(这很明显,我不能这样做!)打开一个盒子,关闭所有打开的
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