Would this be a good way to handle things?

These bootstrap modals have been giving me a headache recently. In the first modal that pops up, no matter what is entered in the input it will automatically go to the “thank you” modal as soon as the button is pushed. Then if the user goes back to enter another pledge, only then will the error span be visible. Even if the input is entered as required, and the user pushes the button with the input empty it will still go to the next modal.

So, here is my thought, I set the initial button to be disabled, and then using an input even listener the user will be able to pledge only if the value conditions are met. This way I do not have to worry about the spans, and the user can not pledge with an empty input.
Thoughts?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.