how to use jquery in href property in html code example Example: jquery set href of link $('.element').attr('href', newUrl);