slideUp / slideDown Toggle for several DIVs
Hello Everybody,
unfortunately I am new to Jquery and was wondering how it is possible to open one DIV while closing all other DIVs ( or maybe just the open ones) all with the same CLASS.
I know that the accordion does just that but I ran in some other issues there, because I was not able to use another DIV to trigger the accordion (I am posting that exact question under another topic though because someone else might find the answer more usefull and easier)
Right now I am Using the Toggle, which obviously toggles all DIVs with the class .info
$(".project_btn").click(function(){
$(".info").slideToggle("slow");
$(this).toggleClass("active");
});
Anyways here is again my question:
How is it possible to open one div after a click whilst the others with the same CLASS are being closed (if already open).
Greets and thanks
Ralf