jQuery 文本框验证
我想验证应该只接受“字母”和“。”的文本框。和 ”/”。
如何使用 jquery 插件做到这一点?
提前致谢。jquery vlidt
I want to validate the textbox which should accept only "letters" and "." and "/".
how to do this using jquery plugin?
thanks in advance.jquery vlidt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要扩展验证插件以使用正则表达式,如本文中所述:StackOverflow
对于您的具体示例,可以找到正则表达式列表 此处
You will need to extend the validation plugin to use a regular expression as discussed in this post here: StackOverflow
And for your specific example, a list of regular expressions can be found here