jQuery表单验证插件全攻略

jQuery Validation Plugin 是一个简单易用的 客户端表单验证工具,支持高度自定义。它提供多种内置验证方法(如:URL和邮箱验证)及多语言错误提示,适用于新项目和现有系统集成。可通过Bower、NuGet或NPM安装,也支持CDN直接引用。依赖jQuery 1.7.2+或3.1.1+版本。

1、jQuery Validation Plugin

This jQuery plugin makes simple clientside form validation easy, whilst still offering plenty of customization options. It makes a good choice if you're building something new from scratch, but also when you're trying to integrate something into an existing application with lots of existing markup. The plugin comes bundled with a useful set of validation methods, including URL and email validation, while providing an API to write your own methods. All bundled methods come with default error messages in english and translations into 37 other languages.

Current version: 1.19.5

License: MIT

Files:

2、Installation via Package Managers

  • Bower : bower install jquery-validation
  • NuGet: Install-Package jQuery.Validation
  • NPM: npm i jquery-validation

Latest files on jsDelivr CDN(hotlinking welcome):

Latest files on cdnjs CDN(hotlinking welcome):

3、Dependencies

Required

4、Support

  • Please post questions to the official using jQuery Plugins Forum, tagging your question with (at least) "validate". Keep your question short and succinct and provide code when possible; a testpage makes it much more likely that you get an useful answer in a shorter time.

  • Please post bug reports and other contributions (enhancements, features, eg. new validation methods) to the GitHub issue tracker


参考:

相关推荐
user205855615181311 小时前
Windows 项目安装时报 `node-sass` 错误,如何快速处理
前端
LiaCode11 小时前
Redis 在生产项目的使用
前端·后端
LiaCode11 小时前
一天学完 redis 的爽翻版核心知识总结
前端·后端
大刚测试开发实战11 小时前
如何内网穿透访问本地私有化部署的TestHub
前端·后端·github
风骏时光牛马11 小时前
# Ruby基于Rails框架实现多角色权限管理与数据分页查询完整实战代码案例
前端
weedsfly11 小时前
迭代器、生成器与异步迭代——让数据“按需流动”的艺术
前端·javascript
xiaodaoluanzha11 小时前
迄今為止,最簡單的編程語言 Nolang
前端·后端
Csvn11 小时前
Fetch 请求竞态终结者:AbortController 不只是用来"取消"的
前端
阡陌Jony11 小时前
关于前端路由中的参数问题的学习(一): params,query, hash(#)
前端
阡陌Jony11 小时前
缓存相关学习笔记(一):Service Worker 缓存
前端