adding href to a jquery html code example Example: jquery set href of link $('.element').attr('href', newUrl);