title: Confused about whether return false; is needed or not
body: <p>I'm very new to jQuery and I'm writing some validation logic on a form.  With the help of this wonderful community I was able to understand how to post my forms with <code>.ajax()</code> and prevent a postback.</p>
  
  <p>I'm using the button.click() event to do this and I know when I need to keep the form from posting I have to put <code>return false;</code> and I understand why.  For example:</p>
  
  <pre><code>var name = $("input#name").val();
  if (name == "") 
  {
      $("label#lblName").css('color','red');
      $("input#name").focus();
      return false;       
  }
  </code></pre>
  
  <p>I understand why returning false is important in this case.  But at the very end of my submit button click event there is also a return false, like so:</p>
  
  <pre><code>$(function()
  {
      $("#submitbutton").click(function() 
      {
          //validate and submit form
  
      return false; //WHY is this here? What purpose does it serve?
      });
  });
  </code></pre>
  
  <p>The reason I ask is that I'm also writing a function to change the label colors back to white on .blur().  Like so:</p>
  
  <pre><code>$(function()
  {
      $("input#name").blur(function() 
      {
          var name = $("input#name").val();       
          if (name == '')
          {
              $("label#lblName").css('color','red');      
          }
          else
          {
              $("label#lblName").css('color','');
          }
      //Do I need return false here?  and why?       
      });
  
  });
  </code></pre>
  
  <p>Thank you!</p>