How to move focus to another section (named anchor) on one page after doing some jquery processing.
The ABC () function does some processing and then, I need to move the user to a section on the same page (further down the page).
You can use the code below to scroll the screen to <div id="navigation">. Just change the selector to fit the element you want to scroll through.
<div id="navigation">
$('html, body').animate({ scrollTop: $('#navigation').offset().top }, 'slow');
location.href=location.href.replace(/#.+/,'')++'#namedanchor' or
location.href=location.href.replace(/#.+/,'')++'#namedanchor'
document.getElementById('#namedanchor').scrollIntoView(true)
The first one adds a hash to the URL of the address