Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

validate aadhaar number in javascript

<script> function validateAadhaar(){ 
var regexp = /^[2-9]{1}[0-9]{3}s[0-9]{4}s[0-9]{4}$/; 
var ano = document.getElementById("aadhharno").value; 

if(regexp.test(ano)) { 
console.log("Valid Aadhaar Number"); 
return true; 
}else{ 
console.log("Invalid Aadhaar Number"); 
 return false; 
} } 
</script>
<input type="text" name="aadhhar" id="aadhharno" onfocusout="validateAadhaar()">
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript multiply arguments 
Javascript :: how to add comment in react js 
Javascript :: javascript sleep thread 
Javascript :: redirect is not defined react/jsx-no-undef 
Javascript :: eslint allow debugger 
Javascript :: export type you may need an appropriate loader to handle this file type 
Javascript :: replace all words in string jquery 
Javascript :: nestjs create controller with cmd 
Javascript :: js id style backgroundColor change 
Javascript :: check device type in javascript 
Javascript :: javascript alerter 
Javascript :: how to display uploaded image in html using javascript 
Javascript :: insertion sort javascript 
Javascript :: math rock 
Javascript :: remove unused dependencies in React Ask Question 
Javascript :: dont drag img 
Javascript :: array reverse without mutating 
Javascript :: the engine node is incompatible with this module 
Javascript :: detect keypress javascript 
Javascript :: javascript filter array of objects by id 
Javascript :: email validatore regex 
Javascript :: a quick introduction to pipe and compose javascript 
Javascript :: javascript get unique values from array 
Javascript :: image is not displaying in react js 
Javascript :: how to iterate table rows in javascript 
Javascript :: active menu adminlte 3 using jquery 
Javascript :: javascript clear sembols 
Javascript :: popper.js install npm 
Javascript :: javascript get width of a div 
Javascript :: get columns of array list json js 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =