How to pass argument to a jquery function through an onClick event?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3273350/jquery-click-pass-parameters-to-user-function">jquery .click pass parameters to user function</a>  </p>
</blockquote>



<pre><code>    $('#topleft').click(function (x) {
    loadPopupBox();
    $("#popupinner").load('getdetail.php?id=' +x);
    });
</code></pre>

<p>How to pass a value to the variable x from an onclick event? The value of the variable x is POSTED to getdetail.php and the data returned from the getdetail.php is loaded to a DIV with ID popupinner. Now everything works except the data POST/GET.</p>
