jQuery输入字段格式转换为XX-XX-XX [英] jQuery input field format into XX-XX-XX

查看:99
本文介绍了jQuery输入字段格式转换为XX-XX-XX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到适合该插件. 我希望能够格式化用户可以在字段中输入的方式.

I couldn't find a plugin suitable for this. I want to be able to format the way the user would be able to input in the field.

XX-XX-XX

其中X是0到9之间的任何数字

Where X is any digits from 0-9

推荐答案

您可以使用Masked输入: 屏蔽的输入库

You can use Masked input : Masked Input Library

它应该对您有帮助.

这篇关于jQuery输入字段格式转换为XX-XX-XX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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