JQuery Masked Input - mask the first part of a social security number

user1213887 picture user1213887 · Jun 17, 2014 · Viewed 7.2k times · Source

I'm using jQuery masked input pluigic for social security number masking. I want the first 5 characters to be masked like a password. I was able to mask as shown in demos but I am not able to get masking as XXX-XX-1234

Need, kind of a password-like masking where the first five characters would be masked with 'X' and the rest will be shown normally. Any direction would be appreciated, thanks in advance.

Answer

Ashutosh picture Ashutosh · Oct 30, 2015

Though its an old post, but i have had similar requirement and I came up with https://github.com/mishraas/jQuery-SSN-Field-Masking. You may want to have a look at it.