Why is this javascript function running without being called?
<pre><code>$(document).ready(SetupButtonClicks());

function SetupButtonClicks() {
    $('#btnJavaPHP').click(DoPHPStuff());
}

function DoPHPStuff() {
    //stuff
}
</code></pre>

<p>I have this code in my javascript file, when I debug it I see it call <code>SetupButtonClicks()</code> like it should but after that is done it calls <code>DoPHPStuff()</code>. <code>DoPHPStuff()</code> should only be called when <code>btnJavaPHP</code> is clicked. What am I doing wrong?</p>
