jeudi 6 mars 2014

Disabling native form validation for a certain button


Vote count:

0




I have an HTML form in which I use the browser's native validation. However, inside my form I have another button unrelated to the submit that does a different action. When I press that button howver, it fires off the browser's validation, how can I disable that



<form>
<input type="text" required />
<button>I shouldn't fire validation</button>
<input type="submit" value="I fire the validation">
</form>


asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire