jQuery掩盖的输入-掩盖社会安全号码的第一部分 [英] JQuery Masked Input - mask the first part of a social security number

查看:104
本文介绍了jQuery掩盖的输入-掩盖社会安全号码的第一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 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.

推荐答案

尽管它是一篇老文章,但是我有类似的要求,所以我想到了

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.

这篇关于jQuery掩盖的输入-掩盖社会安全号码的第一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆