-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Horizontal form and has-error on a single field #14735
Comments
It doesn't work for me because I lost the horizontal space between the two input fields. It works for me if I append 'has-error' to the col div. <div class="col-md-3 has-error">
<input type="text" name="firstname" class="form-control">
</div> |
It works because you removed the Something like this? |
We don't currently support it on multiple fields. Changing that would break backward compatibility, so we can't do it until v4. |
I have two input fields in a form-horizontal > form-group.
The first field is required and the second field is optional.
If the first field is empty I only want to show an 'has-error' for the first input field
and not for the whole form-group.
Here is an example:
http://jsfiddle.net/6968cyqr/
How can i set an 'has-error' for a single input field?
The text was updated successfully, but these errors were encountered: