$('textarea').focus(function() {
   var $this = $(this);
   $.data(this, 'img', $this.css('background'));
   $this.css('background-image', 'none');
});
$('textarea').blur(function() {
  if($.trim($('textarea').val()).length){
    // Added () around $this
    $(this).css('background', 'none');
  } else {
    $(this).css('background', $.data(this, 'img'));
  }
});
