Answers for "anchor JQuery"

2

scroll jquery to anchor

$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Posted by: Guest on June-12-2020
4

go to anchor jquery

$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Posted by: Guest on June-03-2020
6

jquery set href of link

$('.element').attr('href', newUrl);
Posted by: Guest on March-04-2020
0

click anchor tag using jquery

$(document).ready(function () {
    $('#about')[0].click();  //$('#about').get(0).click();
});
Posted by: Guest on September-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language