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


参考:

相关推荐
晚风予星8 小时前
Ant Design Token Lens 迎来了全面升级!支持在 .tsx 或 .ts 文件中直接使用 Design Token
前端·react.js·visual studio code
sunny_8 小时前
⚡️ vite-plugin-oxc:从 Babel 到 Oxc,我为 Vite 写了一个高性能编译插件
前端·webpack·架构
GIS之路8 小时前
ArcPy 开发环境搭建
前端
林小帅9 小时前
【笔记】OpenClaw 架构浅析
前端·agent
林小帅10 小时前
【笔记】OpenClaw 生态系统的多语言实现对比分析
前端·agent
程序猿的程10 小时前
开源一个 React 股票 K 线图组件,传个股票代码就能画图
前端·javascript
不爱说话郭德纲10 小时前
告别漫长的HbuilderX云打包排队!uni-app x 安卓本地打包保姆级教程(附白屏、包体积过大排坑指南)
android·前端·uni-app
大雨还洅下11 小时前
前端JS: 虚拟dom是什么? 原理? 优缺点?
javascript
唐叔在学习11 小时前
[前端特效] 左滑显示按钮的实现介绍
前端·javascript
用户52822903018011 小时前
【学习笔记】ECMAScript 词法环境全解析
前端