My code scrolls the user to the bottom of the page:
var $elem = $('body');
$('html, body').animate({scrollTop: $elem.height()}, 800);
How can it be modified to take the user to the part of the page where there is a h3 tag with the id “myTitle”:
<h3 id="myTitle">Hello</h3>
How about:
using
.offset().Here’s a working example: http://jsfiddle.net/naTjL/