jQuery - Using .slideToggle and .animate simultaneously
<p>I have a portion of jQuery that just doesn't seem to be working correctly. I have a link to click, [show/hide] which should slideToggle a div. At the same time, I want to animate it so that the page scrolls to the top of the div. It works when I put the <code>animate</code> function inside the <code>slideToggle</code> function, like <a href="http://fiddle.jshell.net/YFR2e/2/" rel="nofollow">in this jfiddle</a>.</p>

<p>However, this means that the div i want slides out, and <em>then</em> the page scrolls down. id like to set it up so that both happen simultatneously, which I tried to do in <a href="http://fiddle.jshell.net/JzU5G/1/" rel="nofollow">this jfiddle</a> but it simply doesn't work. I also tried doing the scroll animation first, then the slideToggle, which didn't work - is there a way to implement this also?? Cheers!</p>
