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 !
- Host: GitHub
- URL: https://github.com/aslamanver/abvalidate
- Owner: aslamanver
- License: mit
- Created: 2018-06-04T07:30:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-30T09:11:03.000Z (over 4 years ago)
- Last Synced: 2025-06-16T04:33:20.339Z (about 1 year ago)
- Topics: custom-validation, javascript, jqury, localization, validation
- Language: JavaScript
- Homepage: https://aslamanver.github.io/abvalidate/
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 #
```