Using bind( type, [data], fn ) and non-inline function
<pre><code>$("p").bind("click", function(event){
       // code goes here
});
</code></pre>

<p>This is quite understandable. But what is the way to use a non-inline function and pass the event as an argument? That is:</p>

<pre><code>$("p").bind("click", myFunction(event));

 function myFunction(event) {
       // code goes here
 }
</code></pre>

<p>Thank you!</p>
