$('.element').attr('href', newUrl);
$(document).ready(function() {
$("a").attr("href", "https://www.google.com/");
console.log("Hyperlink Changed");
});
$('a').attr('href'); // gets the actual value
$('a').prop('href'); // gets the full URL always
uery set href of linkJavascript By Eloquent Design on Mar 4 2020 DonateThankComment
$('.element').attr('href', newUrl);