title: h5Validate function call should done on form validation
body: <p>I have validated my form using <code>http://ericleads.com/h5validate/</code> . I am calling a js function onsubmit="js();"of a form. The issues is validaion works but the js() function always call first whether the form gets validated or not. What I want that it should check for the validation first and when the form is validated then it should run the js function I am calling onsubmit event. Kindly let me know how can I do that.</p>
  
  <pre><code>&lt;form onsubmit="js();"&gt;
  &lt;input type="text" required /&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  
  $(document).ready(function () {
      $('form').h5Validate();
  });
  </code></pre>