- $(document).ready(function(){
- var x = true;
-
- $("#Menubutton").click(function(){
- if (x == true) {
- $(".DropDown").slideUp(1000);
- $("#drop2").slideUp(1000);
- alert("true");
- x = false;
- }
-
- if( x == false) {
- $(".DropDown").slideDown(1000);
- $("#drop2").slideDown(1000);
- alert("false");
- x = true;
- }
-
- });
-
- });
To my Problem I want to click on a button (div) and want to slideUp a div. And when i click it on the second time i want that it slide down. Have anybody an idea how i can solve my problem?
Thank you