title: Trigger html5 validation without form post
body: <p>I want to achieve something like this without form post, as it will redirect the page.
  <a href="https://i.stack.imgur.com/ATG8r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ATG8r.png" alt="enter image description here" /></a></p>
  <p>here is my code</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form&gt;
    &lt;input type="number" step="any" min="0" required oninvalid="this.setCustomValidity('Please enter price with decimal format, eg x.xx .')"&gt;
    &lt;button type="submit"&gt;submit&lt;/button&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I've did some research it seems like it has to be triggered with form post. Possible to trigger the html5 validtion with jquery function button click ?</p>