So for one of my buttons, I made it so that when clicked, a div(#drowpdown) would drop down near the footer of the webpage and would scroll down as well where the anchor point is located.
Is there a way to scroll back up to the top of the website as the #dropdown is toggled to its original position ?
heres my html
<div id = "button_hold">
<a href = "#dropdown"><img id = "drop_button" src = "images/drop_button.png"/></a>
</div>
<div id = "dropdown">
<p>here are some stuff</p>
</div>
and the jquery
$(document).ready(function(){
$("#drop_button").click(function () {
$("#dropdown").toggle('slide', {
duration: 1000,
easing: 'easeOutExpo',
direction: 'up'
});
});
});