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