提交 | 用户 | 时间
|
58d006
|
1 |
[jQuery Validation Plugin](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) - Form validation made easy |
A |
2 |
================================ |
|
3 |
|
|
4 |
[![Build Status](https://secure.travis-ci.org/jzaefferer/jquery-validation.png)](http://travis-ci.org/jzaefferer/jquery-validation) |
|
5 |
|
|
6 |
The jQuery Validation Plugin provides drop-in validation for your existing forms, while making all kinds of customizations to fit your application really easy. |
|
7 |
|
|
8 |
## [Help the project](http://pledgie.com/campaigns/18159) |
|
9 |
|
|
10 |
[![Help the project](http://www.pledgie.com/campaigns/18159.png?skin_name=chrome)](http://pledgie.com/campaigns/18159) |
|
11 |
|
|
12 |
This project is looking for help! [You can donate to the ongoing pledgie campaign](http://pledgie.com/campaigns/18159) |
|
13 |
and help spread the word. If you've used the plugin, or plan to use, consider a donation - any amount will help. |
|
14 |
|
|
15 |
You can find the plan for how to spend the money on the [pledgie page](http://pledgie.com/campaigns/18159). |
|
16 |
|
|
17 |
## Getting Started |
|
18 |
|
|
19 |
Include jQuery and the plugin on a page. Then select a form to validate and call the `validate` method. |
|
20 |
|
|
21 |
```html |
|
22 |
<form> |
|
23 |
<input required> |
|
24 |
</form> |
|
25 |
<script src="jquery.js"></script> |
|
26 |
<script src="jquery.validation.js"></script> |
|
27 |
<script> |
|
28 |
$("form").validate(); |
|
29 |
</script> |
|
30 |
``` |
|
31 |
|
|
32 |
For more information on how to setup a rules and customizations, [check the documentation](http://docs.jquery.com/Plugins/Validation). |
|
33 |
|
|
34 |
## Contributing |
|
35 |
Follow the [jQuery style guide](http://contribute.jquery.com/style-guides/js), even if existing code doesn't. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). |
|
36 |
|
|
37 |
If you've wrote custom methods that you'd like to contribute to additional-methods.js, create a branch, add the method there and send a pull request for that branch. |
|
38 |
|
|
39 |
## License |
|
40 |
Copyright (c) 2013 Jörn Zaefferer |
|
41 |
Licensed under the MIT license. |