Smooth scroll to div id jQuery

$("#button").click(function() {
    $('html, body').animate({
        scrollTop: $("#myDiv").offset().top
    }, 2000);
});

Comments

Popular posts from this blog

JSON to ARRAY

ajax using jquery and javascript

call jquery after ajax call