Hi, i have the following (which obviously i cant do!)
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);
});
}
What i want is to open one that is clicked on and close all ones that are open. The box opens box the others dont close. Any help much appreciated. Regards