Bootstrap Form Control States

Bootstrap offers to style for disabled inputs and classes for form validation,

Input Focus

When an input receives: focus, the outline of the input is removed and a box-shadow is applied.

Disabled lnputs

If you need to disable an input, simply adding the disabled attribute will not only disable it; it will also change the styling and the mouse cursor when the cursor hovers over the element.

Disabled Fieldsets

Add the disabled attribute to a

to disable all the controls within the
at once.

Validation States

Bootstrap includes validation styles for errors, warnings, and success messages. To use, simply add the appropriate class to the parent element.

Updated on: 2020-06-12T14:00:57+05:30

386 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements