An open API service indexing awesome lists of open source software.

https://github.com/aslamanver/abvalidate

Don't give default error messages to your clients give in their language which they understand !
https://github.com/aslamanver/abvalidate

custom-validation javascript jqury localization validation

Last synced: 10 months ago
JSON representation

Don't give default error messages to your clients give in their language which they understand !

Awesome Lists containing this project

README

          

## Custom Message - jQuery Form Validation - abValidate.js

* Contribution are welcome - Give a pull request

* Don't give default error messages to your clients give in their language which they understand !
* https://aslamanver.github.io/abvalidate/ - Example

#### 1. Copy the CDN after your good scripts

```html

```

#### 2. How it works

1. Initialize the library

```javascript
$(document).ready(function () {
//.ab-form is your form class
$(".ab-form").abValidate();
});
```

2. That's all, now write all of your code in your HTML

```html









```

* Add ```.ab-validation-i``` class to your inputs which should be validated and write your validations in ```ab-validation```

```html

```

* Examples

```html

```

#### 3. Wanna write more ?

```javascript
$(".ab-form").abValidate({
color: "#556b2f",
backgroundColor: "white",
debug: true
});
```

Return the form status
```javascript
$(".ab-form").abValidate().success;
```

#### 4. Avalilable validations

```
* required|message
* min:5|message
* max:5|message
* email|message
* confirm:elem_id - without #
```