title: jQuery .validate() and form onsubmit
body: <p>So I've got a form with <code>onsubmit="SubmitForm()"</code> and also a <code>$().validate()</code>. The problem is that when submit is clicked, the .validate() works, but SubmitForm() also runs. I'm a little confused, could someone help me out? </p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      $('#eclub').validate({ // initialize the plugin
          rules: {
              FirstName: {
                  required: true,
                  minlength: 2,
              },
              LastName: {
                  required: true,
                  minlength: 2
              },
              'Email Address': {
                  required: true,
                  email: true
              },
              Zip: {
                  required: true,
                  minlength: 2 
              },
              DOB_Month: {
                  required: true,
                  minlength: 2, 
              },
              DOB_Day: {
                  required: true,
                  minlength: 1
              },
              over18: {
                  required: true
              }
          }
      });
  
  
  
  });
  
      function autoDMA() {
          var zip_code = $('#zip_code').val();
              $.ajax({
              url: 'get_zipCode.php',
              type: 'POST',
              data: {zip_code:zip_code},
              success:function(data){$('#dma_code').val(data);}
              });
  
      }
  
      function SubmitForm()
      {
          if($("#emailDeals").is(':checked')){
              document.forms['eclub'].action='http://cl.exct.net/subscribe.aspx';
              document.forms['eclub'].target='_blank';
              document.forms['eclub'].submit();
          }
  
          if($("#mobileDeals").is(':checked')){
              document.forms['eclub'].action='/assets/waterfall/waterfall_rest.php';
              document.forms['eclub'].submit();
          }
  
          return true;
      }
  
  &lt;/script&gt;
  
  &lt;div id="" style="width:60%;"&gt;
      &lt;br/&gt;
      &lt;!-- &lt;form action="http://cl.exct.net/subscribe.aspx" id="eclub" method="post" onsubmit="return validateForm(this)" style="width:100%;"&gt;  --&gt;
      &lt;form method="post" id="eclub" onsubmit="SubmitForm()"&gt;
          &lt;input name="thx" value="http://papamurphys.com/Deals/ThankYou" type="hidden"&gt;
          &lt;input name="dma" value="" type="hidden" id='dma-set' /&gt;
          &lt;input name="dma2" value="" type="hidden" /&gt;
          &lt;input name="MID" value="29115" type="hidden" /&gt;
          &lt;input name="lid" value="846154" type="hidden" /&gt;
          &lt;input name="lid" value="17516793" type="hidden" /&gt;
          &lt;input name="SubAction" value="sub_add_update" type="hidden" /&gt;
          &lt;input type="hidden" name="status" value="normal" /&gt;
          &lt;input name="Birthdate" value="" type="hidden" id="bday"/&gt;
  
          &lt;div class="clearfix"&gt;
              &lt;label for="name"&gt;&lt;span class="bold"&gt;First Name&lt;/span&gt;&lt;/label&gt;&lt;br /&gt;
              &lt;input class="required" name="FirstName" type="text" placeholder="" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;label for="name"&gt;&lt;span class="bold"&gt;Last Name&lt;/span&gt;&lt;/label&gt;&lt;br /&gt;
              &lt;input class="required" name="LastName" type="text" placeholder="" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;label for="email"&gt;&lt;span class="bold"&gt;Email&lt;/span&gt;&lt;/label&gt;&lt;br /&gt;
              &lt;input class="required" name="Email Address" type="text" placeholder="" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;label for="email"&gt;&lt;span class="bold"&gt;Mobile Number&lt;/span&gt;&lt;/label&gt;&lt;br /&gt;
              &lt;input class="required" name="MobileNumber" type="text" placeholder="" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;span class="bold"&gt;Zip/Postal Code&lt;/span&gt;&lt;br /&gt;
              &lt;input class="required zip" id="zip_code" name="PostalCode" type="text" onkeyup="autoDMA()" placeholder="" maxlength="5" size="5" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;input class="zip" id="dma_code" name="DMACode" type="text" placeholder="" maxlength="5" size="5" style="display:none;" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;span class="bold"&gt;Birthday&lt;/span&gt;&lt;br /&gt;
              &lt;input class="month user required" name="DOB_Month" type="text" placeholder="MM" maxlength="2" style="width:48px;" /&gt; 
              &lt;input class="day user required" name="DOB_Day" type="text" placeholder="DD" maxlength="2" style="width:48px;" /&gt;
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;input class="age user" class="required" name="emailDeals" id="emailDeals" type="checkbox"/&gt; Sign me up for email deals
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;input class="age user" class="required" name="mobileDeals" id="mobileDeals" type="checkbox"/&gt; Sign me up for mobile deals
          &lt;/div&gt;
          &lt;div class="clearfix"&gt;
              &lt;input class="age user" class="required" name="over18" id="over18" type="checkbox"/&gt; I'm over 18
          &lt;/div&gt;
          &lt;input class="join-btn" type="submit" style="float:right;line-height:14px;cursor: pointer" onclick="pageTracker._trackPageview('Forms', 'Submit', 'eClubSignUp')" value="SUBMIT" /&gt;
  
        &lt;!--&lt;input type="button" class="join-btn" value="" onclick="validateForm()" /&gt;--&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>