set an href value of an anchor jquery code example Example: jquery set href of link $('.element').attr('href', newUrl);