how can when click buton scrool to another elemtn

JavaScript
$("button").click(function() {
    $('html,body').animate({
        scrollTop: $(".second").offset().top},
        'slow');
});

// example: http://jsfiddle.net/ryXFt/3/$(window).scroll(function() {
    $('html, body').animate({
        scrollTop: $("#myDiv").offset().top
    }, 2000);
});
Source

Also in JavaScript: