Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jQuery Validation Plugin
JavaScript HTML CSS PHP
Branch: master
Failed to load latest commit information.
build Build: Extend release checklist; fix publishing to npm
demo Demos: Add new demo, contributed by Marcus Kästner
lib Core: Use jQuery 1.7+ on/off, add destroy method
src Additionals: Correct postalCodeCA to exclude invalid combinations
test Additionals: Correct postalCodeCA to exclude invalid combinations
.editorconfig Use LF to match jQuery Styleguide
.gitattributes Use LF to match jQuery Styleguide
.gitignore Build: Cleanup gitignores, jscs settings, package descriptions
.jscsrc Build: Cleanup gitignores, jscs settings, package descriptions
.jshintignore JSHint: Extract configuration to dotfiles
.jshintrc Build: Bump and merge JSHint/JSCS config
.travis.yml Build: Speedup travis builds
CONTRIBUTING.md CONTRIBUTING: Added a hint on how to run testsuite using a browser.
Gruntfile.js Build: Only concat when running grunt-watch
LICENSE.md Build: Add a copy of the MIT license
README.md README: Replace pledgie link with 'Looking for maintainers'
bower.json Core: Use jQuery 1.7+ on/off, add destroy method
changelog.md Build: Prepare 1.14.0 release
package.json Build: Updating the master version to 1.14.1-pre.
validation.jquery.json Build: Cleanup gitignores, jscs settings, package descriptions

README.md

jQuery Validation Plugin - Form validation made easy

Build Status devDependency Status Join the chat at https://gitter.im/jzaefferer/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.

⚠️ Looking for maintainers ⚠️

This project is looking for one or more maintainers. This mostly involves triaging issues, reviewing pull requests, and occasionally fixing bugs or finishing a feature implementation. If you're interested, please get in touch.

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 or Forking this repository
  2. Setup the build
  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.

<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.

define(["jquery", "jquery.validate"], function( $ ) {
    $("form").validate();
});

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

Reporting issues and contributing code

See the Contributing Guidelines 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. 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.

License

Copyright © Jörn Zaefferer
Licensed under the MIT license.

Something went wrong with that request. Please try again.