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


参考:

相关推荐
提笔了无痕10 小时前
Web中Token验证如何实现(go语言)
前端·go·json·restful
戌中横10 小时前
JavaScript——Web APIs DOM
前端·javascript·html
Beginner x_u11 小时前
如何解释JavaScript 中 this 的值?
开发语言·前端·javascript·this 指针
HWL567911 小时前
获取网页首屏加载时间
前端·javascript·vue.js
烟锁池塘柳011 小时前
【已解决】Google Chrome 浏览器报错 STATUS_ACCESS_VIOLATION 的解决方案
前端·chrome
速易达网络12 小时前
基于RuoYi-Vue 框架美妆系统
前端·javascript·vue.js
LYS_061812 小时前
RM赛事C型板九轴IMU解算(4)(卡尔曼滤波)
c语言·开发语言·前端·卡尔曼滤波
We་ct12 小时前
LeetCode 151. 反转字符串中的单词:两种解法深度剖析
前端·算法·leetcode·typescript
yinmaisoft13 小时前
JNPF 表单模板实操:高效复用表单设计指南
前端·javascript·html
37方寸13 小时前
前端基础知识(JavaScript)
开发语言·前端·javascript