December 2, 201313 yr Hi, I could use some help. At present when I run the script, the Div remain open, I have to click on the classes (button) for them to close, I want it the other way around. Whereas I have to click on the button to expand the #div / classes yet at the same time when the button is collapsed, one of my other div expands, I hope that wasn't confusing ? $(".about").toggle(function() { $('#about').animate({height:'45px'},"slow"); $('.about').animate({width:'100%', height:'45px', margin:'0px'},"slow"); }, function() { $('#about').animate({height:'400px'},"slow"); $('.about').animate({width:'325px', margin:'6px 0px 0px 4px'},"slow"); });
December 3, 201313 yr One way is you can simple hide the div that u want to stay hidden .about{display:none;}
December 3, 201313 yr Author I don't want it to be permanently hidden, when the page is loaded and until the button (aka div id/class) button is clicked. It's controlled well with jQuery, how do I do this ?
December 3, 201313 yr this is what u meant ? the method i showed wont hide div permanent see here also its much easier to understand if u post full code including css Edited December 3, 201313 yr by sash_oo7
December 3, 201313 yr Author My code is a little more nicer, if you do a quick mock up, I want to elaborate on my code
Create an account or sign in to comment