diff --git a/README.md b/README.md index d4e5421..9ea30e0 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,18 @@ ## Global Source - JavaScript Form Validator [Ready to Use] -[](https://github.com/global-source/javascript_form_validator) [](https://github.com/global-source/javascript_form_validator) [](https://github.com/global-source/javascript_form_validator) [](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) +[](https://github.com/global-source/javascript_form_validator) [](https://github.com/global-source/javascript_form_validator) [](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) ### Installation git clone https://github.com/global-source/javascript_form_validator.git - git checkout master +--or-- + + composer require global-source/javascript-form-validator + ## Why this ? * Support **Native** and **ES6** Javascript, @@ -23,27 +26,20 @@ **Steps to Integrate to Form :** ```html - + or - + ``` Then Integrate your form with Validator. ```javascript - // Core - var myform = jsValidator.init({ - form: 'form2submit', // #id - }); - - // ES6 var myform = new jsValidator().init({ form: 'form2submit', // #id }); - + ``` - ## Options @@ -76,10 +72,13 @@ Then Integrate your form with Validator. | Name | Values | Descriptions | | ----------------- | --------------- | ---------------------------------------------------------------------------- | | required | True, False | Set the fields is required to submit the Form. | -| type="min" | Integer | To set the Minimun length of characters to proceed. | -| type="max" | Integer | To set the Maximum length of characters to proceed. | +| min | Integer | To set the Minimun value to proceed. | +| max | Integer | To set the Maximum value to proceed. | +| data-maxlength="10" | Integer | To set the Maximum length of characters to proceed. | +| maxLength="10" | Integer | To set the Maximum length of characters to proceed. | | type="password" | AlphaNumeric | To set and compare password. | | type="email" | AlphaNumeric | To check the email is valid or not. | +| type="file" | string ['png,jpeg..'] | To check the file format is allowed or not. | | data-message="Error Message"| String | User defined, element based direct error message to handle. | | data-allow="onlyAlpha"| a-zA-Z Only | Allow only string, no digits and no special characters. | | data-allow="string"| a-zA-Z0-9 Only | Allow only string and digits, no special characters. | @@ -134,6 +133,10 @@ It has automated listener to monitor every changes on form. +