how to a div go to anchor jquery code example Example: go to anchor jquery $('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');