Toggle and scroll to?


I have a simple show/hide function with slideToggle. BUT, when clicking to show the div i want it to scoll down to where the div appears, and then when I use the “hide”-button in the div I want it to scoll up again.

I have prepared a fiddle with what code I have so far:


Check out the scrollTo plugin: