4
Answers

How to make X first 6 digits when entering Aadhar Card No using jquery

Paul Rajs

Paul Rajs

4y
763
1
Hi Developers ,
In my project there is a page named customer Registration , when customer enters Aadhaar Card No in t text box
Current - 8693-3764-2252
My Needed Output - XXXX-XX64-2252
Have to save in Database - 8693-3764-2252
i ma trying with google , if anyone know how to do this task kinldy suggest me to done ...
Thanking you
Paul.S
Answers (4)
1
Navaneeth Krishnan

Navaneeth Krishnan

606 1.8k 422.1k 4y
please use jquery mask plugin
 
https://igorescobar.github.io/jQuery-Mask-Plugin/
 
hope this will help you. please let me know if need. 
1
Paul Rajs

Paul Rajs

NA 641 154.1k 4y
Hi Navaneeth Krishnan , thnks for your reply ... its working , but the out put is like XXXX-XX64-2252 but i my expected output is 8693-3764-2252 , how can i get this output and dave it to the databae , kindly suggest me bro ... sorry for the inconvenience ,
 
thanking you 
Paul.S 
 
0
Navaneeth Krishnan

Navaneeth Krishnan

606 1.8k 422.1k 4y
https://stackoverflow.com/questions/33315390/masking-the-values-in-a-textbox-using-jquery
0
Chirag Rathod

Chirag Rathod

NA 151 2.5k 4y
Using Replace keyword replace first few character with 'X'.
 
https://www.dotnetperls.com/replace