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