How do I pass a javascript function I've already defined into a jquery call?
<p>For example, if I have:</p>

<pre><code>function example() {
    alert("example");
}
</code></pre>

<p>Then why doesn't this work?</p>

<pre><code>$("h2").click( example() );
</code></pre>

<p>Does it have to be defined inline?</p>
