how to create <a> href using Jquery code example Example: jquery set href of link $('.element').attr('href', newUrl);