bootstrap-validator
bootstrap-validator copied to clipboard
Know validation status by code
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?