title: jQuery store actual CSS background color, apply a new and then restore the original
body: <p>I'm trying to notify the modified field on an AJAX petition with changing the background of <code>&lt;tr /&gt;</code> changed but I cant get it working.</p>
  
  <p>My code contains an AJAX petition but I handle this right the problem is with that:</p>
  
  <pre><code>var $this = $(this);
  if(confirm("Delete?"))
  {
      // My AJAX petition returns TRUE or FALSE, if TRUE:
  
      // Store the ORIGINAL color
      var ORIGINAL = $this.closest("tr.entry").css('backgroundColor');
  
      // The alert works fine
      alert(ORIGINAL);
  
      // Change the color with the desired and then change with the original after a delay.
      // If i dont use the delay() and the second css() works fine.
  
      $this.closest("tr.entry").css('backgroundColor','#ace997').delay(500).css('backgroundColor', ORIGINAL);
  }
  </code></pre>
  
  <p>Thank you in advance!</p>