jquery set href of link
snippet in javascript

jquery set href of link

user9811

$('.element').attr('href', newUrl);

jquery get link href value

user6616

$("#mylink").attr("href");