Why is my function called two times?
<pre><code>    $(document).ready(function () {
 doSomething(1);    
 $('#pp').click( doSomething(2) );//why is this called?? I didn't click the button..
});

function doSomething(v) {
 alert(v);
}
&lt;/script&gt;

&lt;body&gt;

&lt;input type="button" id="pp" value="asdf" /&gt;
</code></pre>

<p>I need a function to be called on load and click. But somehow <code>doSomething()</code> is called two times on load. What's going on..??</p>
