Hi
How to Mask first 6 digits as X when entering Aadhar Card No using jquery
I am using regex pattern to mask,below code
Aadhaar No
With Mask :
Without Mask :
if anyone know the solution kindly suggest me
Garima BansalPosted Apr 28, 2023, 9:42 AM
Getting error after enter number
Cannot set properties of null (setting 'value')
Amit MohantyPosted Apr 28, 2023, 9:20 AM
Check the above full code. if you still not get the result then check your console that is there any error on your page. May be there is a conflict between js file.
Vishal YelvePosted Apr 28, 2023, 9:05 AM
Hi Garima,
Please refer below link
https://facingissuesonit.com/tag/jquery-to-mask-aadhar-number/
Garima BansalPosted Apr 28, 2023, 7:06 AM
I tryed a lot but dont know where i am doing wrong
Aadhaar No
ErrorMessage="Enter Valid Adhaar number" ValidationExpression="[\d]{12}" ValidationGroup="BasicDetails" />
With Mask :
Without Mask :
Can anyone please suggest me, exact where i am doing wrong
Tuhin PaulPosted Apr 28, 2023, 2:36 AM
The complete code :
Try to add jQuery library in your HTML file if it is not added already, as the code is using it to set the HTML content of the div elements.
Amit MohantyPosted Apr 27, 2023, 11:36 AM
The value is not showing in the div because of their display property set to none. Add the below code before assign the value to the respective div.
Updated code:
Garima BansalPosted Apr 27, 2023, 10:56 AM
Amit Mohanty
Tryed your code but not work
Amit MohantyPosted Apr 27, 2023, 10:20 AM
Try this