sending variables to a JQuery function
<p>I'm a novice in jQuery, but I hope somebody will be able to help me out.  I have searched this forum (and others) but haven't been able to find an answer that I could make work.</p>

<p>I have a link like this:</p>

<pre><code>&lt;a href="#"&gt;
</code></pre>

<p>and a jQuery script:</p>

<pre><code>$("div.show_dialogbox").click(function(){
    $("div#dialogboxwraper").animate({
        height: "400px"
    }, "slow")
    .animate({
        height: "200px"
    }, "slow");
});
</code></pre>

<p>I would like to be able to send a variable with the link and use it in the script for the height like this:</p>

<pre><code>&lt;a href="#" OnClick="variable(200)"&gt;


$("div.show_dialogbox").click(function(variable){
    $("div#dialogboxwraper").animate({
        height: variable+200+"px"
    }, "slow")
    .animate({
        height: variable+"px"
    }, "slow");
});
</code></pre>
