]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Placeholder changes to input value in readonly input. (#34040)
authorRajesh Kumar <53071109+rajesh2kumar96@users.noreply.github.com>
Thu, 3 Jun 2021 06:14:10 +0000 (11:44 +0530)
committerGitHub <noreply@github.com>
Thu, 3 Jun 2021 06:14:10 +0000 (23:14 -0700)
* 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 <redux@splintered.co.uk>
Co-authored-by: Mark Otto <otto@github.com>
site/content/docs/5.0/forms/form-control.md

index 057b785b12c4cd2523544722f16bf4046c44b77f..9c1c495b161daba768e75e59d43e900948d5aa41 100644 (file)
@@ -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