How do i add a query string pair to an existing url in jquery
<p>I am aware that I can access all external links on a page using something like:</p>

<pre><code>// Get external links
$.expr[':'].external = function(obj){
return !obj.href.match(/^mailto\:/)
        &amp;&amp; (obj.hostname != location.hostname);
};
</code></pre>

<p>does anyone know how I can add a query string pair (along the lines of <code>?aid=1234567</code>)
to the URLs in the external links? </p>

<p>Thanks in advance</p>
