用于格式化文本输入的jquery插件 [英] jquery plugin to format text input

查看:83
本文介绍了用于格式化文本输入的jquery插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个jquery插件,我可以使用输入文本框只允许用户输入数字输入,字母数字输入等?

I am looking for a jquery plugin that I can use with input textboxes to allowing only numeric input, alphanumeric input etc by the user?

我一直在寻找谷歌等,但寻找这种插件的建议。

I have been looking on google etc but looking for recommendations of such plugins.

推荐答案

测试以下每一项,以确保它的行为符合您的期望,因为每个人可能会有不同的行为和设置选项。根据您的要求选择一个。

Test each of the following to make sure it's behavior is what you are expecting, because each might have slightly different behavior and setting options. Choose the one as per you requirements.


  1. 使用jquery 蒙面输入插件

  2. meioMask - 另一个蒙版输入jquery插件

  3. JQUERY REGEX MASK PLUGIN

  4. jquery的所有其他屏蔽插件

  1. Use the jquery Masked input plugin
  2. meioMask - another masked input jquery plugin
  3. JQUERY REGEX MASK PLUGIN
  4. All other masking plugins for jquery

我喜欢REGEX屏蔽插件,因为你可以完全控制屏蔽能力和所有重要的是你如何提出正则表达式(建议使用 RegexBuddy

I like the REGEX mask plugin, as you are in total control of masking capabilities and all it matters is how you come up with the regex (suggest using RegexBuddy)

这篇关于用于格式化文本输入的jquery插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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