Hello everybody, I'd like my page to go to the top when certain anchor is clicked, I had this done before but I lost the code somewhere, here is how I tried to do it but its not working its scrolling usual super fast.
$('a[href=#top]').click(function () {
$('body').animate({
scrollTop: 0
},
50);
});
Can anybody help me, tnx