1000hz / bootstrap-validator

A user-friendly HTML5 form validation jQuery plugin for Bootstrap 3
http://1000hz.github.io/bootstrap-validator
MIT License
2.38k stars 1.07k forks source link

Know validation status by code #616

Open array81 opened 6 years ago

array81 commented 6 years ago

Is there a way to know validation form status by javascript code? I have a form without submit button. The user use a link (extern to form) to submit the form with this code:

<a href="javascript:{}" onclick="document.getElementById('savecontact').submit(); return false;"><button type="button" class="btn btn-block btn-primary">SUBMIT</button></a>

I have submit only if the form is validated. Is it possible?