title: Validate Format of an Email Address using Jquery.validate.js
body: <p>I'm using <a href="http://jqueryvalidation.org/email-method/" rel="nofollow">jquery.validate.js</a> to validate the Email Input of the Formular.</p>
  
  <p>It's working well, but I'm suprised that it's excepting emails as valid with the following format: name@domain</p>
  
  <p>In my opinion there is missing a .TLD, no?</p>
  
  <p>I checked the function inside the jquery.validate.js file. They are referencing the specification from <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address" rel="nofollow">www.whatwg.org</a> for a valid email Adress. On the site it says that a valid email address should have the format name@doman.tld</p>
  
  <p>The JS Regex inside jquery.validate.js is the following:</p>
  
  <pre><code>email: function( value, element ) {
      return this.optional( element ) || /^[a-zA-Z0-9.!#$%&amp;'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value );
  },
  </code></pre>
  
  <p>How do I use a custom Regex that validates if the email includes a .TLD?</p>
  
  <p>I specified the custom validation method as following:</p>
  
  <pre><code>jQuery.validator.addMethod("customemail", function(value, element) {
      return this.optional(element) || /^(([^&lt;&gt;()[\]\\.,;:\s@\"]+(\.[^&lt;&gt;()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(value);
  }, "Please enter a valid email address.");
  </code></pre>
  
  <p>The function to validate the form is the following:</p>
  
  <pre><code>$("#subscription-form").validate({
  });
  </code></pre>
  
  <p>What do I need to include, so the script uses my custom method instead of the email method?</p>