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