Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorChristian Oliff <christianoliff@pm.me>2022-10-03 15:32:32 +0300
committerMark Otto <otto@github.com>2022-10-03 16:33:52 +0300
commitb2f5cf9c434c5c7ca98232209f0cfd135a825e1a (patch)
tree7351a044ac09c5a454668bc8b87783f82e21943a /site
parent961d5ff9844372a4e294980c667bbe7e0651cdeb (diff)
Minor grammatical fixes
REF: https://en.wikipedia.org/wiki/Ajax_(programming) https://en.wikipedia.org/wiki/Server-side
Diffstat (limited to 'site')
-rw-r--r--site/content/docs/5.2/forms/validation.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.2/forms/validation.md b/site/content/docs/5.2/forms/validation.md
index d6d6266347..f8c2200c00 100644
--- a/site/content/docs/5.2/forms/validation.md
+++ b/site/content/docs/5.2/forms/validation.md
@@ -19,7 +19,7 @@ Here's how form validation works with Bootstrap:
- HTML form validation is applied via CSS's two pseudo-classes, `:invalid` and `:valid`. It applies to `<input>`, `<select>`, and `<textarea>` elements.
- Bootstrap scopes the `:invalid` and `:valid` styles to parent `.was-validated` class, usually applied to the `<form>`. Otherwise, any required field without a value shows up as invalid on page load. This way, you may choose when to activate them (typically after form submission is attempted).
-- To reset the appearance of the form (for instance, in the case of dynamic form submissions using AJAX), remove the `.was-validated` class from the `<form>` again after submission.
+- To reset the appearance of the form (for instance, in the case of dynamic form submissions using Ajax), remove the `.was-validated` class from the `<form>` again after submission.
- As a fallback, `.is-invalid` and `.is-valid` classes may be used instead of the pseudo-classes for [server-side validation](#server-side). They do not require a `.was-validated` parent class.
- Due to constraints in how CSS works, we cannot (at present) apply styles to a `<label>` that comes before a form control in the DOM without the help of custom JavaScript.
- All modern browsers support the [constraint validation API](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#the-constraint-validation-api), a series of JavaScript methods for validating form controls.
@@ -159,7 +159,7 @@ While these feedback styles cannot be styled with CSS, you can still customize t
</form>
{{< /example >}}
-## Server side
+## Server-side
We recommend using client-side validation, but in case you require server-side validation, you can indicate invalid and valid form fields with `.is-invalid` and `.is-valid`. Note that `.invalid-feedback` is also supported with these classes.