How to prevent HTML5 form validation on non-submit button?
<p>A form with reset and submit buttons, but both are causing HTML5 validation.  When the user clicks reset, I just want the fields cleared.  Assuming this is default action for any form button, and not just submit, how do I prevent the default action, but still run the custom action?</p>

<pre><code>&lt;button data-ng-click="reset()"&gt;Reset Form&lt;/button&gt;
&lt;input type="submit" data-ng-click="main.$valid &amp;&amp; post('Check')" class="submitbtn" value="Submit" /&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/lr4ku.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lr4ku.png" alt="enter image description here"></a></p>