anchor jquery code example
Example 1: go to anchor jquery
$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Example 2: jquery set href of link
$('.element').attr('href', newUrl);
Example 3: scroll jquery to anchor
$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Example 4: click anchor tag using jquery
$(document).ready(function () {
$('#about')[0].click(); //$('#about').get(0).click();
});