[jQuery Validation Plugin](http://jqueryvalidation.org/) - Form validation made easy
================================
[![Build Status](https://secure.travis-ci.org/jzaefferer/jquery-validation.png)](http://travis-ci.org/jzaefferer/jquery-validation)
[![devDependency Status](https://david-dm.org/jzaefferer/jquery-validation/dev-status.png?theme=shields.io)](https://david-dm.org/jzaefferer/jquery-validation#info=devDependencies)
The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy.
## [Help the project](http://pledgie.com/campaigns/18159)
[![Help the project](http://www.pledgie.com/campaigns/18159.png?skin_name=chrome)](http://pledgie.com/campaigns/18159)
This project is looking for help! [You can donate to the ongoing pledgie campaign](http://pledgie.com/campaigns/18159)
and help spread the word. If you've used the plugin, or plan to use, consider a donation - any amount will help.
You can find the plan for how to spend the money on the [pledgie page](http://pledgie.com/campaigns/18159).
## Getting Started
### Downloading the prebuilt files
Prebuilt files can be downloaded from http://jqueryvalidation.org/
### Downloading the latest changes
The unreleased development files can be obtained by:
1. [Downloading](https://github.com/jzaefferer/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](http://jqueryvalidation.org/documentation/).
## Reporting an Issue
**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](http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state-%28type=email%29). We will follow their lead and use the same check. If you think the specification is wrong, please report the issue to them.
1. Make sure the problem you're addressing is reproducible.
2. Use http://jsbin.com or http://jsfiddle.net to provide a test page.
3. Indicate what browsers the issue can be reproduced in. **Note: IE Compatibilty modes issues will not be addressed.**
4. What version of the plug-in is the issue reproducible in. Is it reproducible after updating to the latest version.
## Contributing
See the [Contributing Guide](CONTRIBUTING.md)
## License
Copyright (c) 2013 Jörn Zaefferer
Licensed under the MIT license.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
jQuery Validate 插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求。该插件捆绑了一套有用的验证方法,包括 URL 和电子邮件验证,同时提供了一个用来编写用户自定义方法的 API。所有的捆绑方法默认使用英语作为错误信息,且已翻译成其他 37 种语言。 该插件是由 Jörn Zaefferer 编写和维护的,他是 jQuery 团队的一名成员,是 jQuery UI 团队的主要开发人员,是 QUnit 的维护人员。该插件在 2006 年 jQuery 早期的时候就已经开始出现,并一直更新至今。目前版本是 1.11.1。
资源推荐
资源详情
资源评论
收起资源包目录
jQuery validation插件官方下载 (312个子文件)
stylesheet.css 19KB
style.css 11KB
screen.css 6KB
milk.css 5KB
qunit.css 4KB
ui.css 2KB
style.css 2KB
cmxform.css 1014B
cmxformTemplate.css 993B
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 22KB
index.html 18KB
index.html 10KB
index.html 7KB
index.html 7KB
themerollered.html 7KB
radio-checkbox-select-demo.html 4KB
errorcontainer-demo.html 4KB
dynamic-totals.html 4KB
custom-methods-demo.html 3KB
ajaxSubmit-integration-demo.html 2KB
errors-within-labels.html 2KB
custom-messages-data-demo.html 2KB
index.html 2KB
index.html 2KB
jquerymobile.html 2KB
index.html 2KB
file_input.html 2KB
favicon.ico 1KB
header1.jpg 442B
jquery-1.11.1.js 276KB
jquery-1.9.1.js 262KB
jquery-1.8.3.js 260KB
jquery-1.7.2.js 247KB
jquery-1.6.4.js 232KB
tiny_mce.js 158KB
qunit.js 60KB
methods.js 52KB
test.js 45KB
jquery.validate.js 42KB
core.js 40KB
jquery.form.js 38KB
additional-methods.js 34KB
jquery.validate.min.js 21KB
jquery.mockjax.js 18KB
additional-methods.min.js 16KB
require.js 15KB
error-placement.js 10KB
jquery.simulate.js 8KB
rules.js 8KB
jquery.maskedinput.js 7KB
Gruntfile.js 4KB
mktSignup.js 4KB
iban.js 4KB
messages_fr.js 3KB
messages_fr.min.js 3KB
messages_fr.js 3KB
messages_ka.js 2KB
messages_ka.min.js 2KB
statesUS.js 2KB
messages_ka.js 2KB
editor_template.js 2KB
aria.js 2KB
messages.js 2KB
messages_th.js 2KB
messages_el.js 2KB
cifES.js 2KB
messages_ru.js 2KB
messages_kk.js 2KB
messages_th.min.js 2KB
messages_uk.js 2KB
共 312 条
- 1
- 2
- 3
- 4
资源评论
sgx425021234
- 粉丝: 427
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功