I\'m trying to figure out how get the page automaticlly scroll to a specific div when the page has loaded. I have tried using the jQuery scroll function, but cant get it to
You can do this using the .animate() method:
$(document).ready(function () { // Handler for .ready() called. $('html, body').animate({ scrollTop: $('#what').offset().top }, 'slow'); });
what
FIDDLE