When utilizing Twitter Bootstrap, the validation classes like has-error
or has-warning
must be added to the wrapping form-group
element to style both the input and its label. However, Knockout-Validation directly adds the class to the input element itself.
<div class="form-group has-error">
<label class="control-label">Input with error</label>
<input type="text" class="form-control">
</div>
Is there a way to configure Knockout-Validation so that it applies the classes to the div
instead of the input
?