Answers for "how to change the href of a anchor in jquery"

2

scroll jquery to anchor

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

jquery set href of link

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

Code answers related to "how to change the href of a anchor in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language