The form validator library enables you to validate a form’s elements before submitting it to the server. It has 14 built-in validation rules along with support for writing custom validation logic.
The validator has the ability to parse ASP.NET data annotations’ HTML attributes. This enables you to validate ASP.NET MVC and ASP.NET Core form fields without any additional effort.
Model class with data-annotation attributes.
View-based model for data-annotation attributes.
Initialize the form-validator.
The validation rules and error messages for form validator can be defined using HTML5 element attributes. This facilitates clean and reusable HTML forms.
Meaningful error messages are required to communicate the reason a form is not valid. Form validator has options for customizing both a message’s placement and its content.
Define and customize validation error messages per form element, form, or for your entire application.
Summarize the error messages and place them in custom locations.