Description

Bootstrap 4 provides support for HTML5 form validation. The javascript below checks if the form is valid and then adds the necessary .was-validated class to display custom validation messages. Read the official documentation for more detail.

HTML

CSS

JS