I have two divs; #main-content-portfolio is floated below #main-content-info.
I use a button with a class of .slide-button-one to trigger the following .slideToggle function:
- $(document).ready(function(){
- $('#main-content-info').hide();
- $(".slide-button-one").click(function(){
- $("#main-content-info").slideToggle(800);
- return false;
- });
- });
I want #main-content-info to be initially hidden as the whole page loads, and only then the #main-content-info becomes 'hidden' so my question is how can I hide the div BEFORE it loads?
Many thanks!