title: JQuery blur function not working second time
body: <p>Hi i have a textbox which has "enter ur name" at loading. When focus on it, it become empty and if I dont type anything and the blur it change again to "Enter ur name". This works fine for many times. But the problem is if I focus and enter something and then removed the characters, the textbox is empty. But as to my logic if textbox is empty it should have "enter " your name. JQUERY here is my code. Pls suggest something.</p>
  
  <pre><code>  $(document).ready(function (){
      var name='Enter the name';
      $('input[type="text"]').attr('value',name).focus(function(){
              if($(this).val() == name){
                  $(this).attr('value','');
              }
      }).blur(function(){
              if($(this).val() == ''){
                  $(this).attr('value',name);
              }
      })
    });
  </code></pre>