From e418377b119cbe8604370adcc17ab3de76b2a415 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 4 Mar 2014 15:16:38 -0800 Subject: Fixes #12697: Document readonly inputs --- docs/css.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docs/css.html') diff --git a/docs/css.html b/docs/css.html index 614b74050..9af1eeffc 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.

-- cgit v1.2.3