Bootstrap Validator.js and the Cancel button

679 Views Asked by At

Trying out bootstrap validator (http://1000hz.github.io/bootstrap-validator/), and it's pretty slick, except I don't see how to have it ignore the validation if you hit the "Cancel" button. I tried CausesValidation="false" on the Cancel button, but validation fires anyway. Any ideas appreciated.

1

There are 1 best solutions below

0
On

Change cancel button type from submit to button

If Button Type type="submit" fiddle example

If Button Type type="button" fiddle example

Reference on github