I have search StackOverflow for a solution to this problem but have not found one that works.
I am validating a form with Bootstrap Validator and it works well. I want to disable the submit
button until the entire form is valid and Bootstrap Validator has an isValid()
function. Using this function, the best I can do is on keyup, which is ugly.
Whenever the form is evaluating its validity, there is a lag time and the submit button blinks from valid to not valid very quickly.
Is there a way to fix this blinking with setTimeout
or .delay()
and still have the form function like it does now?
Alternatively, is there a pure Bootstrap Validator solution for this? (This would be ideal) I have looked through the documentation, but could not find anything helpful. There are only ways to set the time of which the form is validated, which does not help my cause.
Here is a JSFiddle that demonstrates the problem.