From e418377b119cbe8604370adcc17ab3de76b2a415 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 4 Mar 2014 15:16:38 -0800 Subject: [PATCH] Fixes #12697: Document readonly inputs --- docs/_includes/nav-css.html | 1 + docs/css.html | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/_includes/nav-css.html b/docs/_includes/nav-css.html index bd2112b30f..1ff3fe804d 100644 --- a/docs/_includes/nav-css.html +++ b/docs/_includes/nav-css.html @@ -67,6 +67,7 @@
  • Static control
  • Focus state
  • Disabled state
  • +
  • Readonly state
  • Validation states
  • Control sizing
  • Help text
  • diff --git a/docs/css.html b/docs/css.html index 614b740502..9af1eeffc4 100644 --- a/docs/css.html +++ b/docs/css.html @@ -1878,7 +1878,7 @@ For example, <section> should be wrapped as inline.

    Disabled inputs

    -

    Add the disabled attribute on an input to prevent user input and trigger a slightly different look.

    +

    Add the disabled boolean attribute on an input to prevent user input and trigger a slightly different look.

    @@ -1947,6 +1947,18 @@ For example, <section> should be wrapped as inline. {% endhighlight %} +

    Readonly inputs

    +

    Add the readonly boolean attribute on an input to prevent user input and style the input as disabled.

    +
    + + + +
    +{% highlight html %} + +{% endhighlight %} + +

    Validation states

    Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add .has-warning, .has-error, or .has-success to the parent element. Any .control-label, .form-control, and .help-block within that element will receive the validation styles.

    -- 2.47.2