title: FadeOut and Remove Table Row
body: <p>I know this question has been asked before but I seem to have a different problem than has been addressed before.  I have a table and I would like each row to have a delete link that fades the table row out and then removes the table row from the DOM.  My first problem was that I couldn't get the jQuery fadeOut effect to work on table rows and found that you have to actually call fadeOut on the row's td elements.  So, here is my jJavascript:</p>
  
  <pre><code>$('span.deleteItem').live('click', function() {  
      $(this).closest('tr').find('td').fadeOut('fast', 
          function(){ 
              $(this).parents('tr:first').remove();                    
          });    
  
      return false;
  });
  </code></pre>
  
  <p>The span element lives inside a td so I find the closest tr element when it is clicked, and then fall the fadeOut function on each of its td elements.  This works great.</p>
  
  <p>The problem is that in the callback function, 'this' is actually referencing the window element not the individual td element that was hidden.  From my understanding 'this' was supposed to reference the element that was faded out.</p>
  
  <p>Any ideas?</p>