add on click to a jquery function
<p>I'm trying hard to understand the syntax of <code>.on("click"</code> but just can't get it.</p>

<p>If I have this code:</p>

<pre><code>&lt;script&gt;
    $(function() {
        $(".somediv").not(":contains('$someparam')").addClass("hidden");
    });
&lt;/script&gt;
</code></pre>

<p>What do I have to do for it to display <code>$someparam</code> as a link on page, and clicking this link will activate this jQuery to hide the divs?</p>

<p>Thanks in advance.</p>
