title: How to target all input text and password value?
body: <p>I'm trying to figure out how to target every input(text and password) field on all forms on the page document to remove the default value when on focus with this single script:</p>
  
  <pre><code>$(document).ready(function()
  {
      Input = $('input');
      default_value = Input.val();
  
      $('input').focus(function() 
      {
          if($(this).val() == default_value)
          {
              $(this).val("");
          }
      }).blur(function()
      {
          if($(this).val().length == 0)
          {
              $(this).val(default_value);
          }
      });
  });
  </code></pre>
  
  <p>It works only on the first input text element in the first form on my page, but nothing on the rest. Please help!</p>