Ordering multiple events on a single function...
- $(document).ready(function(){
- $(".slide-button-one").click(function(){
- $("#main-content-info").slideToggle(800);
- $("#main-content-portfolio").toggle();
- return false;
- });
- });
Here is the application for this javascript.
When the .slide-button-one (top 'Profile', 'Clients' or 'Contact' links) is clicked, #main-content-portfolio (white-background div) slides down and the display is set to none. This reveals #main-content-info (grey-background div).
Currently however, the display value of #main-content-portfolio is set to none BEFORE the slide. How can I switch this order of events?
Any ideas would be much appreciated.