How can I get the user to the top of a section using jQuery, but NOT by scrolling? For example, I have this bit of code which works -
$("button").click(function() {
$("#myDiv").animate({ scrollTop: 0 });
});
But it of course scrolls the user to the top of the section. I want to achieve this without having the visually obvious scrolling effect happen. Any way to have that happen?