aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajesh Kumar <[email protected]>2021-06-03 11:44:10 +0530
committerGitHub <[email protected]>2021-06-02 23:14:10 -0700
commit071a288d39f70719c771cd56ded6c36b5d150a83 (patch)
tree699595146105c65c5744991f7f1543cf12233738
parent46045b4a9b21b0a55ea8867ad7f3dc17e1c6cfee (diff)
downloadbootstrap-071a288d39f70719c771cd56ded6c36b5d150a83.tar.xz
bootstrap-071a288d39f70719c771cd56ded6c36b5d150a83.zip
Placeholder changes to input value in readonly input. (#34040)
* placeholder changes to input value * Fix content and add value to readOnly input * add value in readonly input * Update site/content/docs/5.0/forms/form-control.md Co-authored-by: Rajesh Kumar <https://github.com/rajesh2kumar96> Co-authored-by: Patrick H. Lauke <[email protected]> Co-authored-by: Mark Otto <[email protected]>
-rw-r--r--site/content/docs/5.0/forms/form-control.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/content/docs/5.0/forms/form-control.md b/site/content/docs/5.0/forms/form-control.md
index 057b785b1..9c1c495b1 100644
--- a/site/content/docs/5.0/forms/form-control.md
+++ b/site/content/docs/5.0/forms/form-control.md
@@ -35,15 +35,15 @@ Add the `disabled` boolean attribute on an input to give it a grayed out appeara
{{< example >}}
<input class="form-control" type="text" placeholder="Disabled input" aria-label="Disabled input example" disabled>
-<input class="form-control" type="text" placeholder="Disabled readonly input" aria-label="Disabled input example" disabled readonly>
+<input class="form-control" type="text" value="Disabled readonly input" aria-label="Disabled input example" disabled readonly>
{{< /example >}}
## Readonly
-Add the `readonly` boolean attribute on an input to prevent modification of the input's value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.
+Add the `readonly` boolean attribute on an input to prevent modification of the input's value.
{{< example >}}
-<input class="form-control" type="text" placeholder="Readonly input here..." aria-label="readonly input example" readonly>
+<input class="form-control" type="text" value="Readonly input here..." aria-label="readonly input example" readonly>
{{< /example >}}
## Readonly plain text