Skip to content

Horizontal form and has-error on a single field #14735

@odan

Description

@odan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions