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