How do I change the link path when a button is clicked?
<p>How do I change the link path when the button is clicked?</p>

<p>For example, how do I change the URL from <a href="http://www.google.com" rel="nofollow">http://www.google.com</a> to <a href="http://stackoverflow.com">http://stackoverflow.com</a> in the following code?</p>

<pre><code>&lt;div id="path"&gt;&lt;a href="http://www.google.com"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;input type="button" id="btn" value="Click" /&gt;


$("#btn").click(function(){});
</code></pre>
