send this as argument of function in jquery
<p>How can i rewrite this function as below:</p>

<pre><code>    $('#TblInvoiceList td img.ImgDelete').live('click' , function () {
            $(this).parent().parent().remove();
    });
</code></pre>

<p>Desired form:</p>

<pre><code>$('#TblInvoiceList td img.ImgDelete').live('click' , function () {
    delete(this);        
});

delete: function(){
$(this).parent().parent().remove();
}
</code></pre>
