SyntaxFix
Write A Post
Hire A Developer
Questions
Use
$(window).scrollTop()
It'll scroll the window to the item.
var scrollPos = $("#branch1").offset().top; $(window).scrollTop(scrollPos);