add link to href jquery code example
Example 1: get attribute value jquery href
var href = $(this).attr('href');
Example 2: jquery set href of link
$('.element').attr('href', newUrl);
Example 3: jQuery change href value
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");