title: How to create html5 custom validation?
body: <p>I am using html 5 form validation for validate my form before submit, if is valid, submit, but I need validate my User Register form, so it need validate if Password Confirm value is equal camp Password, below is my form example:</p>
  <pre><code>&lt;form&gt;
      &lt;label&gt;Login:&lt;/label&gt;
      &lt;input type=&quot;text&quot; name=&quot;login&quot; id=&quot;login&quot;/&gt;&lt;br/&gt;
      &lt;label&gt;Password:&lt;/label&gt;
      &lt;input type=&quot;password&quot; name=&quot;pass&quot; id=&quot;pass&quot;/&gt;&lt;br/&gt;
      &lt;label&gt;Password Confirm:&lt;/label&gt;
      &lt;input type=&quot;password&quot; name=&quot;pass_conf&quot; id=&quot;pass_conf&quot;/&gt;&lt;br/&gt;
  
      &lt;input type=&quot;submit&quot;/&gt;
  &lt;/form&gt;
  </code></pre>
  <p><a href="http://jsfiddle.net/lai32290/qbL53/" rel="noreferrer">or in jsfiddle</a></p>
  <p>How to can I create my custom validation for work like default validations?</p>