title: Jquery return original value on blur if the field left empty
body: <p>Ho can I achieve this? I want to get the original value if the user left the field blank.</p>
  
  <p>This is what I got so far. <a href="http://jsfiddle.net/dbsNy/" rel="nofollow">Jsfiddle Demo</a></p>
  
  <p>Here is my code</p>
  
  <pre><code>$(document).ready(function() {
      var field = $('input[type="text"]');
      field.focus(function() { //Empty the field on focus
          var thisValue = $(this).val();
          $(this).attr("value", "");
      });
  
      field.blur(function() { //Check the field if it is left empty
          if ($(this).val() == "") {
              //alert('This field can not be left empty');
              $(this).val(thisValue);
          }
      });
  });​
  </code></pre>