About the library

LivevalidateJS is a JavaScript library that provides a simple way to validate user input in web forms. The library provides several validation rules that can be used to check for required fields, minimum and maximum length, pattern matching, and custom validation functions.

Add Live Validation with addLiveValidation

The `addLiveValidation` function is used to add live validation to an input field. This means that the user will see immediate feedback on their input as they type.

The function takes four parameters:

Validate a Group of Fields with addGroupValidation

The `addGroupValidation` function is used to validate a group of input fields together. This can be useful in cases where multiple fields are related to each other, such as in a registration form.

The function takes three parameters:

Validate Async Input with validateAsync

The `validateAsync` function is used to validate an input asynchronously. This can be useful when the validation requires an asynchronous operation, such as a server-side check.

The function takes two parameters:

Validation Example