index() to scroll up JQuery code example Example: scroll to element jquery $('html, body').animate({ scrollTop: $("#grepperRocks").offset().top });