How to scroll to top of a div using jQuery?
Here is what you can do using jquery:
$('#A_ID').click(function (e) { //#A_ID is an example. Use the id of your Anchor
$('html, body').animate({
scrollTop: $('#DIV_ID').offset().top - 20 //#DIV_ID is an example. Use the id of your destination on the page
}, 'slow');
});
Or, for less code, inside your click you place:
setTimeout(function(){
$('#DIV_ID').scrollTop(0);
}, 500);