1
2
3
4
5
6
7
$("#button").click(function() {
    $('html, body').animate({
        scrollTop: $("#elementtoScrollToID").offset().top
    }, 2000);
});

//http://stackoverflow.com/questions/6677035/jquery-scroll-to-element