jquery using data for cross-function variables
<p>Hey all. Basically I have a page full of text input fields with default values in them.</p>

<p>When a user focuses on the input, I want the value to be set to nothing, but then if the user focusses out (on blur) and the input is still empty, I want to change its value back to what it was originally.</p>

<p>At the moment I have this, but it isn't working:</p>

<pre><code>$("#login input").focus(function(){
    $(this).val("");
      $(this).data({
       value: $(this).val()
      });
}); 
$("#login input").focusout(function(){
  if($(this).val()=="") {
   $(this).val($(this).data("value"));
  }
});
</code></pre>

<p>What I need is some sort of NOT .change() kind of thing? Maybe?</p>

<p>Thanks in advance</p>
