Saturday, 4 July 2015

Scroll to particular div using jquery


Scroll to particular div using jquery

jQuery("#goto-reviews-form").click(function(){
jQuery('html, body').animate({
        'scrollTop' : jQuery("#tabreviews").position().top
    });
});

No comments: