ericmbarnard/Knockout-Validation — Issue #34: Add custom errorElement selector / Errors on submit
Author: metaman
Created: 2012-03-06 13:57:36+00:00
State: open

Hi,

Thanks for the great plugin, just a couple of questions:

- What's the best approach to customise which element has the 'errorElementClass' css class applied to it. We are using Bootstrap and have the following code:

Age

We would like to add an 'error' css class to the control-group rather that the input. I have hacked in an update to the knockout-validation js to get it working but it is not the best solution

- Your example here (http://jsfiddle.net/ericbarnard/KHFn8/) is displaying the number of errors even though the form has not been submitted. Is there a nice way of only filling the errors collection when the form has been submitted at least once?

Cheers.