![]() |
VOOZH | about |
Bootstrap 5 Validation Server side provides valuable, actionable feedback to your users by browser default behaviors or custom styles and JavaScript. If you are using server-side validation, you can indicate invalid and valid form fields with .is-invalid and .is-valid and add .invalid-feedback & .valid-feedback with these classes it is a supported class.
Bootstrap 5 Validation server-side classes:
Syntax:
<section> <input type=" " class="Validation server-side Class"required> <section class="Validation server-side Class"> ......... </section> </section>
Example 1: In this example we will create two input fields with two feedback sections and all of them will be set as invalid.
Output:
Example 2: In this example we will put one input field, which will be valid and others will be invalid
Output:
👁 ImageReference: https://getbootstrap.com/docs/5.0/forms/validation/#server-side