Jquery: add existing function to an Jquery event
<p>in all jquery examples i see this kind of code:</p>

<pre><code>$('.menu a').each(function(){
 $(this).animate({paddingLeft: $(this).width()}, 200);
 });
</code></pre>

<p>What they do here is create a function 'on the fly' (is that called an anonymous delegate?)</p>

<p>but what if i have an existing function, which wants to have access to the $(this) also?</p>

<p>let's say i have this function:</p>

<pre><code>function doAnimate(ctl){
  //do something here
{
</code></pre>

<p>How can i use that function in the jquery statement?</p>

<p>Reason i ask is that i want to use this function in more jquery statements, and i don't want to type the anonymous delegate multiple times.</p>

<p>I've tried this, but that gives me an error:</p>

<pre><code>$("#&lt;%=txtReceiverEmailEcard1.ClientID  %&gt;").blur(blurWatermark($(this), 'Your email address'));
</code></pre>
