I am trying to change a link programmatically.
Example:
I want to call a dialog and change an image buttons url link based upon the call it gets.
so:
<a href="javascript:myHref('http://www.google.com')" onclick="$('.hiddendiv').dialog('open');" > Edit Address </a>
the function myHref would change a link within the div (let’s call it myAnchor) to http://www.google.com.
Thoughts on how to go about this?
I’ve seen methods for changing a designated link, but not in this manner.
I think this code might be what you are looking for: