Example for validateAdhar.js




How it works ?


Adhar number are generated using Verhoeff algorithm, so validateAdhar.js file first validates if the given number is a 12 digit number or not, if its a 12 digit number then it checks if number is a valid Verhoeff number or not.


How to use ?


Insert the following script tag in the page.

<script src="https://sachink23.github.io/adhar-number-validation/validateAdhar.js"></script>

Use function validate_adhar(AdharNumber) wherever needed, when function returns true, then adhar number is valid, if it returns false adhar number is invalid.


Simple Adhar Number Validation Using Javascript by Sachin Kekarjawalekar