jQuery: How do you pass $(this) as function parameter?
<p>All jQuery examples I see has in-line functions.</p>

<p>If the function is pretty long, or if the function is reusable, I may want to separate the function.</p>

<p>For example, how can I turn this</p>

<pre><code>$('#myElement').click(function(){
  $(this).addCss('clicked');
})
</code></pre>

<p>into something like this</p>

<pre><code>$('#myElement').click(ElementClicked($(this))

function ElementClicked(???){
  ???.addCss('clicked');
}
</code></pre>

<p>Thanks!</p>
