scroll to div exact jquery code example
Example 1: scroll to element jquery
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
Example 2: jquery scroll to top of div
$('#DIV_ID').scrollTop(0);
$('html, body').animate({
scrollTop: $("#grepperRocks").offset().top
});
$('#DIV_ID').scrollTop(0);