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