jQuery掩盖的输入

编程入门 行业动态 更新时间:2024-10-08 18:41:24
本文介绍了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.

推荐答案

尽管它是一篇老文章,但是我有类似的要求,所以我想到了 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掩盖的输入

本文发布于:2023-10-31 06:57:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545356.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:jQuery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!