From f3d1bfae2822cf27aadbb1d40c80ab84c943e15e Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Thu, 20 Jul 2017 17:07:59 +0530 Subject: [PATCH 1/3] Update README.md --- README.md | 65 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 112c625..b439e39 100644 --- a/README.md +++ b/README.md @@ -29,36 +29,22 @@ Then Integrate your form with Validator. - ```javascript - - // For Native-Javascript - var myform = jsValidator.init({ + + // Core + var myform = jsValidator.init({ form: 'form2submit', // #id - forceFilter: true, - message: { - required: 'This field is required !', - min: '
This field is less then the limit [INDEX]', - max: 'This field is exceeds the limit of [INDEX]', - password: 'Password doesn\'t match !', - email: 'Invalid Email found !' - } }); - // For ES6 - var myform = new jsValidator().init({ + // ES6 + var myform = new jsValidator().init({ form: 'form2submit', // #id - forceFilter: true, - message: { - required: 'This field is required !', - min: '
This field is less then the limit [INDEX]', - max: 'This field is exceeds the limit of [INDEX]', - password: 'Password doesn\'t match !', - email: 'Invalid Email found !' - } }); - + ``` + + + ## Options | Name | Values | Descriptions | Mandatory | @@ -101,7 +87,7 @@ Then Integrate your form with Validator. Currently the validation will trigger on submit button trigger. -It has automated listener to eliminating unnecessary changes on form. +It has automated listener to monitor every changes on form. **Note:** @@ -189,6 +175,37 @@ It has automated listener to eliminating unnecessary changes on form. ``` +#### Sample + +```javascript + + // For Native-Javascript + var myform = jsValidator.init({ + form: 'form2submit', // #id + forceFilter: true, + message: { + required: 'This field is required !', + min: '
This field is less then the limit [INDEX]', + max: 'This field is exceeds the limit of [INDEX]', + password: 'Password doesn\'t match !', + email: 'Invalid Email found !' + } + }); + + // For ES6 + var myform = new jsValidator().init({ + form: 'form2submit', // #id + forceFilter: true, + message: { + required: 'This field is required !', + min: '
This field is less then the limit [INDEX]', + max: 'This field is exceeds the limit of [INDEX]', + password: 'Password doesn\'t match !', + email: 'Invalid Email found !' + } + }); + +``` It Will listen the **Submit** button event **Automatically**. From 12269980cb76838ad83ec4d489d9c050c26ac53b Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Thu, 20 Jul 2017 17:09:10 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b439e39..7d3ea39 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,8 @@ It has automated listener to monitor every changes on form. ``` -It Will listen the **Submit** button event **Automatically**. +It Will listen the **Submit** event **Automatically** and initiating the validation checks. +And based on response, it will allow to submit or throw messages. License From b5d6ad4dbc9c1454b75d0c57328debf19a71ec59 Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Fri, 21 Jul 2017 18:01:31 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d3ea39..d4e5421 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,14 @@ git checkout master -## What's New ? +## Why this ? * Support **Native** and **ES6** Javascript, * Pure Javascript Code (**No Dependency**), * Simplified Implementations, * **HTML 5 validation** for all Browsers, - * Reliable and **Dynamic** level **DOM** Validations. + * Reliable and **Dynamic** level **DOM** Validations, + * Dynamic auto scroll with element. **Steps to Integrate to Form :**