jquery set href link code example
Example 1: jquery set href of link
$('.element').attr('href', newUrl);
Example 2: jquery get link href value
$("#mylink").attr("href");
$('.element').attr('href', newUrl);
$("#mylink").attr("href");