how to find a tag and add href in jquery 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");
$('.element').attr('href', newUrl);
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");