Skip to content

44727065/jquery-validation

 
 

Repository files navigation

jQuery Validation Plugin - Form validation made easy

Build Status

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

This project is looking for help! You can donate to the ongoing pledgie campaign 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.

Getting Started

Include jQuery and the plugin on a page. Then select a form to validate and call the validate method.

<form>
	<input required>
</form>
<script src="jquery.js"></script>
<script src="jquery.validation.js"></script>
<script>
$("form").validate();
</script>

For more information on how to setup a rules and customizations, check the documentation.

Reporting an Issue

  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.
  4. What version of the plug-in is the issue reproducible in. Is it reproducible after updating to the latest version.

Contributing

  1. Follow the jQuery style guide, even if existing code doesn't.
  2. Add unit tests for any new or changed functionality.
  3. Lint and test your code using Grunt.

Additional Methods

If you've wrote custom methods that you'd like to contribute to additional-methods.js:

  1. Create a branch
  2. Add the method as a new file in src/additional
  3. (Optional) Add translations to src/localization
  4. Send a pull request to the master branch.

License

Copyright (c) 2013 Jörn Zaefferer Licensed under the MIT license.