jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

Prevent removing success class from inputs

Open chrisatomix opened this issue 12 years ago • 1 comments

As a user fills out the form, inputs which are valid are given the green .success class.

But once the user focuses on another input, that class is immediately removed (the label goes from green to black).

In the interest of user-friendliness, it would be better if there was a way to keep those inputs green as the user fills out the rest of the form.

Before: form1 Preferred: form2

Another feature request is to be able to override the CSS classes, which would simply mean storing them as options, ie:

submitError: false,
submitSuccess: false,
successClass: 'success',
warningClass: 'warning',
errorClass: 'error'

This way they aren't hardcoded all the way through the JS file.

chrisatomix avatar Jul 12 '13 06:07 chrisatomix

:+1: I also would like to know how to keep the field validation success class applied.

carneeki avatar Jul 23 '13 02:07 carneeki