我正在使用 jQuery屏蔽输入法进行社会安全号码屏蔽.我希望前5个字符像密码一样被屏蔽.我能够如演示中所示进行遮罩,但无法将其遮盖为XXX-XX-1234
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
需要一种类似于密码的掩码,其中前五个字符将用'X'掩码,其余字符将正常显示.任何方向将不胜感激,在此先感谢.
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.
推荐答案尽管它是一篇老文章,但是我有类似的要求,所以我想到了 github/mishraas/jQuery-SSN-Field-Masking .您可能想看看它.
Though its an old post, but i have had similar requirement and I came up with github/mishraas/jQuery-SSN-Field-Masking. You may want to have a look at it.
更多推荐
jQuery掩盖的输入
发布评论