jquery set href code example
Example 1: jquery set href of link
$('.element').attr('href', newUrl);
Example 2: jQuery change href value
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");
Example 3: how to edit the link in a href with jquery
$("a").attr("href", "http://www.google.com/")