append url with a session id jquery
<p>I have a static session ID i'm using and need to add it to a url when clicked, but can't seem to get it right. If you go to <a href="http://www.mysite.com/test.php" rel="nofollow">http://www.mysite.com/test.php</a> you get redirected, the session id XYX needs to be added, so the correct url to hit the page would be <a href="http://www.mysite.com/test.php?sessionid=XYX" rel="nofollow">http://www.mysite.com/test.php?sessionid=XYX</a></p>

<pre><code>&lt;a href="http://www.mysite.com/test.php" class="foo"&gt;link here&lt;/a&gt;

$('.foo').click(function(){
  (this).append(?sessionid=XYX');'
});
</code></pre>

<p>I know this is wrong, all documentation Ive found is much more complex than my needs. thanks!</p>
