Bootstrap Form Control States

BootstrapWeb DevelopmentCSS Framework

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.

raja
Published on 19-Jun-2018 09:07:03
Advertisements