[jQuery Validation Plugin](https://jqueryvalidation.org/) - Form validation made easy
================================
[![release](https://img.shields.io/github/release/jquery-validation/jquery-validation.svg)](https://github.com/jquery-validation/jquery-validation/releases/latest)
[![Build Status](https://secure.travis-ci.org/jquery-validation/jquery-validation.svg)](https://travis-ci.org/jquery-validation/jquery-validation)
[![devDependency Status](https://david-dm.org/jquery-validation/jquery-validation/dev-status.svg?theme=shields.io)](https://david-dm.org/jquery-validation/jquery-validation#info=devDependencies)
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/jquery-validation/badge?style=rounded)](https://www.jsdelivr.com/package/npm/jquery-validation)
The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy.
## Getting Started
### Downloading the prebuilt files
Prebuilt files can be downloaded from https://jqueryvalidation.org/
### Downloading the latest changes
The unreleased development files can be obtained by:
1. [Downloading](https://github.com/jquery-validation/jquery-validation/archive/master.zip) or Forking this repository
2. [Setup the build](CONTRIBUTING.md#build-setup)
3. Run `grunt` to create the built files in the "dist" directory
### Including it on your page
Include jQuery and the plugin on a page. Then select a form to validate and call the `validate` method.
```html
<form>
<input required>
</form>
<script src="jquery.js"></script>
<script src="jquery.validate.js"></script>
<script>
$("form").validate();
</script>
```
Alternatively include jQuery and the plugin via requirejs in your module.
```js
define(["jquery", "jquery.validate"], function( $ ) {
$("form").validate();
});
```
For more information on how to setup a rules and customizations, [check the documentation](https://jqueryvalidation.org/documentation/).
## Reporting issues and contributing code
See the [Contributing Guidelines](CONTRIBUTING.md) for details.
**IMPORTANT NOTE ABOUT EMAIL VALIDATION**. As of version 1.12.0 this plugin is using the same regular expression that the [HTML5 specification suggests for browsers to use](https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address). We will follow their lead and use the same check. If you think the specification is wrong, please report the issue to them. If you have different requirements, consider [using a custom method](https://jqueryvalidation.org/jQuery.validator.addMethod/).
In case you need to adjust the built-in validation regular expression patterns, please [follow the documentation](https://jqueryvalidation.org/jQuery.validator.methods/).
**IMPORTANT NOTE ABOUT REQUIRED METHOD**. As of version 1.14.0 this plugin stops trimming white spaces from the value of the attached element. If you want to achieve the same result, you can use the [`normalizer`](https://jqueryvalidation.org/normalizer/) that can be used to transform the value of an element before validation. This feature was available since `v1.15.0`. In other words, you can do something like this:
``` js
$("#myForm").validate({
rules: {
username: {
required: true,
// Using the normalizer to trim the value of the element
// before validating it.
//
// The value of `this` inside the `normalizer` is the corresponding
// DOMElement. In this example, `this` references the `username` element.
normalizer: function(value) {
return $.trim(value);
}
}
}
});
```
## License
Copyright © Jörn Zaefferer<br>
Licensed under the MIT license.
没有合适的资源?快使用搜索试试~ 我知道了~
毕设&课程作业_车牌智能识别系统.zip
共377个文件
js:286个
html:26个
gif:25个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 118 浏览量
2024-01-31
16:08:22
上传
评论
收藏 1.63MB ZIP 举报
温馨提示
计算机类毕业设计、课程作业,系统源码!!! 计算机类毕业设计、课程作业,系统源码!!! 计算机类毕业设计、课程作业,系统源码!!!
资源推荐
资源详情
资源评论
收起资源包目录
毕设&课程作业_车牌智能识别系统.zip (377个子文件)
stylesheet.css 19KB
style.css 11KB
screen.css 6KB
milk.css 5KB
login.css 3KB
index.css 2KB
ui.css 2KB
style.css 2KB
cmxform.css 1014B
cmxformTemplate.css 993B
common.css 865B
reset.css 790B
core.css 683B
site-demos.css 471B
screen.css 195B
logo_marketo.gif 8KB
tab-sprite.gif 5KB
button-submit.gif 4KB
back_green-fade.gif 2KB
login-sprite.gif 2KB
back_nav_blue.gif 2KB
tab_green.gif 2KB
icons.gif 1KB
step3-24.gif 1KB
step1-24.gif 1KB
step2-24.gif 1KB
bg.gif 1KB
toggle.gif 845B
blank.gif 799B
page.gif 664B
loading.gif 418B
cmxform-fieldset.gif 314B
warning.gif 234B
unchecked.gif 223B
checked.gif 220B
backRequiredGray.gif 137B
required_star.gif 121B
bg.gif 89B
bg.gif 73B
cmxform-divider.gif 43B
step2.htm 13KB
index.html 23KB
index.html 22KB
index.html 10KB
index.html 10KB
index.html 7KB
index.html 7KB
themerollered.html 7KB
index-bs4.html 5KB
index.html 5KB
register.html 5KB
index.html 5KB
radio-checkbox-select-demo.html 4KB
errorcontainer-demo.html 4KB
index.html 4KB
dynamic-totals.html 4KB
custom-methods-demo.html 3KB
login.html 3KB
ajaxSubmit-integration-demo.html 2KB
errors-within-labels.html 2KB
custom-messages-data-demo.html 2KB
index.html 2KB
index.html 2KB
index.html 2KB
jquerymobile.html 2KB
index.html 2KB
file_input.html 2KB
favicon.ico 1KB
form_bg.jpg 273KB
saucer_men.jpg 179KB
plan_9.jpg 144KB
refer_madness.jpg 89KB
index.jpg 74KB
header1.jpg 442B
jquery-1.11.1.js 276KB
jquery-1.9.1.js 262KB
jquery-3.1.1.js 261KB
jquery-1.8.3.js 260KB
jquery-1.7.2.js 247KB
tiny_mce.js 158KB
jquery.min.js 119KB
methods.js 85KB
test.js 75KB
additional-methods.js 51KB
jquery.validate.js 49KB
core.js 48KB
jquery.form.js 38KB
jquery.mockjax-2.2.1.js 32KB
jquery.validate.min.js 28KB
additional-methods.min.js 22KB
jquery.mockjax-1.5.3.js 18KB
require.js 15KB
error-placement.js 14KB
rules.js 12KB
jquery.simulate.js 8KB
jquery.maskedinput.js 7KB
messages_pt_BR.js 6KB
messages_pt_BR.js 6KB
messages_pt_BR.min.js 5KB
messages_de.js 5KB
共 377 条
- 1
- 2
- 3
- 4
资源评论
学术菜鸟小晨
- 粉丝: 1w+
- 资源: 5003
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功