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 <fieldset> to disable all the controls within the <fieldset> 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.

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 12-Jun-2020


Kickstart Your Career

Get certified by completing the course

Get Started