jQuery: onclick instead of href=javascript::
<p>Yes ive been told a couple of time using onclick</p>

<pre><code>$('#linkId').click(function() 
</code></pre>

<p>instead of</p>

<pre><code>&lt;a href='javascript:showComments($displayWall[id]);'&gt;
</code></pre>

<p>But then how do i store a variable in the function, like i can do with that above?</p>

<p>I mean if a link is like this: <code>&lt;a id="linkId"&gt;test&lt;/a&gt;</code> where can i store a variable?</p>
