how to set the value using id for hyperlink in jquery code example Example: jquery set href of link $('.element').attr('href', newUrl);