How to update (append to) an href in jquery?
<p>I have a list of links that all go to a google maps api.</p>

<p>the links already have the <code>daddr</code> (destination) parameter in them as static. I am using Geo-Location to find the users position and I want to add the <code>saddr</code> (source address) to the links once I get the data.</p>

<p>so basically I will need to add something like <code>&amp;saddr=50.1234567,-50.03452</code> at the tail end of all the links pointing to google maps</p>

<p>All the links have a class called <code>directions-link</code></p>

<p>and from <a href="http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery">this page</a> I have figured out how to change them:</p>

<pre><code>$("a.directions-link").attr("href", "http://www.google.com/");
</code></pre>

<p>However I only want to append my value to the end of the href without changing what the href already is.</p>

<p>How can I do that?</p>

<p>Thanks!!</p>
