how to trigger click button?
<p>I have this click button code</p>

<pre><code>    \$("#extractmonkeys").click(function () {
        \$("#grapharea").html(" ");
        \$("#paramselection").html(" ");
</code></pre>

<p>How can I trigger this code from somewhere else?</p>

<pre><code>     \$("#extractmonkeys").trigger("click");
</code></pre>

<p>Am i missing something?</p>

<p>please note: \$ is because i'm coding jquery inside perl ...</p>
