I have two sliding panels, panel1 is sliding down, while panel2 is sliding from left. I want to close panel1 when opening panel2. I know there's many similar question already been answered but I couldn't figure it out how do I apply those in my site.
$(document).ready(function(){
$(".slide-btn1").click(function(){
$("#panel1").toggle("slow");
$(this).toggleClass("active");
return false;
});
$(".slide-btn2").click(function(){
$("#panel2").slideToggle("slow");
$(this).toggleClass("active");
return false;
});
});
Edit: this is what I have done so far http://jsfiddle.net/Pukau/9CFgR/2/
for live demo see this link: http://jsfiddle.net/nanoquantumtech/HT9Bx/