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