PHPackages                             chathurabuddi/jquery-validation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. chathurabuddi/jquery-validation

ActiveComponent[Validation &amp; Sanitization](/categories/validation)

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

1.19.3(7y ago)01.4k[1 PRs](https://github.com/chathurabuddi/jquery-validation/pulls)MITJavaScript

Since Feb 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chathurabuddi/jquery-validation)[ Packagist](https://packagist.org/packages/chathurabuddi/jquery-validation)[ Docs](http://jqueryvalidation.org/)[ RSS](/packages/chathurabuddi-jquery-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

[jQuery Validation Plugin](https://jqueryvalidation.org/) - Form validation made easy
=====================================================================================

[](#jquery-validation-plugin---form-validation-made-easy)

[![release](https://camo.githubusercontent.com/77ee26cd71f35e287edc3f55faa033f107285bbac42ec5a1ea9a98078769dda1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a71756572792d76616c69646174696f6e2f6a71756572792d76616c69646174696f6e2e737667)](https://github.com/jquery-validation/jquery-validation/releases/latest)[![Build Status](https://camo.githubusercontent.com/fd1a597d72ff485988903396f4307fac1a49c23a2e8a570c95746face197ce93/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a71756572792d76616c69646174696f6e2f6a71756572792d76616c69646174696f6e2e737667)](https://travis-ci.org/jquery-validation/jquery-validation)[![devDependency Status](https://camo.githubusercontent.com/7541d671fac6245e08fed82b6c8b36d4d9e94085c4813d1711f8dd0ab3e1a6cf/68747470733a2f2f64617669642d646d2e6f72672f6a71756572792d76616c69646174696f6e2f6a71756572792d76616c69646174696f6e2f6465762d7374617475732e7376673f7468656d653d736869656c64732e696f)](https://david-dm.org/jquery-validation/jquery-validation#info=devDependencies)[![jsDelivr Hits](https://camo.githubusercontent.com/2417ffcad982b8f355f3afb01194eff2bfe423a554c2f6727dfe63c8bdbe29c9/68747470733a2f2f646174612e6a7364656c6976722e636f6d2f76312f7061636b6167652f6e706d2f6a71756572792d76616c69646174696f6e2f62616467653f7374796c653d726f756e646564)](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
---------------

[](#getting-started)

### Downloading the prebuilt files

[](#downloading-the-prebuilt-files)

Prebuilt files can be downloaded from

### Downloading the latest changes

[](#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

[](#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").validate();

```

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](https://jqueryvalidation.org/documentation/).

Reporting issues and contributing code
--------------------------------------

[](#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:

```
$("#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
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2653d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61f7ee8b6fee9069a806bfd47aa011b6629fb8e9d5c73e12f396b1dcb9b0d8f8?d=identicon)[chathurabuddi](/maintainers/chathurabuddi)

---

Top Contributors

[![jzaefferer](https://avatars.githubusercontent.com/u/52585?v=4)](https://github.com/jzaefferer "jzaefferer (285 commits)")[![nschonni](https://avatars.githubusercontent.com/u/1297909?v=4)](https://github.com/nschonni "nschonni (105 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (84 commits)")[![Arkni](https://avatars.githubusercontent.com/u/6888059?v=4)](https://github.com/Arkni "Arkni (67 commits)")[![mlynch](https://avatars.githubusercontent.com/u/11214?v=4)](https://github.com/mlynch "mlynch (30 commits)")[![RobJohnston](https://avatars.githubusercontent.com/u/1347487?v=4)](https://github.com/RobJohnston "RobJohnston (5 commits)")[![chathurabuddi](https://avatars.githubusercontent.com/u/10394110?v=4)](https://github.com/chathurabuddi "chathurabuddi (4 commits)")[![skotniczny](https://avatars.githubusercontent.com/u/15799058?v=4)](https://github.com/skotniczny "skotniczny (4 commits)")[![g1smd](https://avatars.githubusercontent.com/u/543007?v=4)](https://github.com/g1smd "g1smd (4 commits)")[![dorner](https://avatars.githubusercontent.com/u/1986893?v=4)](https://github.com/dorner "dorner (4 commits)")[![jcspader](https://avatars.githubusercontent.com/u/1699660?v=4)](https://github.com/jcspader "jcspader (3 commits)")[![patheard](https://avatars.githubusercontent.com/u/2110107?v=4)](https://github.com/patheard "patheard (3 commits)")[![Synchro](https://avatars.githubusercontent.com/u/81561?v=4)](https://github.com/Synchro "Synchro (3 commits)")[![cope](https://avatars.githubusercontent.com/u/112515?v=4)](https://github.com/cope "cope (3 commits)")[![thomasgohard](https://avatars.githubusercontent.com/u/1810242?v=4)](https://github.com/thomasgohard "thomasgohard (2 commits)")[![AndrewRayCode](https://avatars.githubusercontent.com/u/79215?v=4)](https://github.com/AndrewRayCode "AndrewRayCode (2 commits)")[![vanillajonathan](https://avatars.githubusercontent.com/u/10222521?v=4)](https://github.com/vanillajonathan "vanillajonathan (2 commits)")[![ArmindoMaurits](https://avatars.githubusercontent.com/u/5989873?v=4)](https://github.com/ArmindoMaurits "ArmindoMaurits (2 commits)")[![christopherbauer](https://avatars.githubusercontent.com/u/8356869?v=4)](https://github.com/christopherbauer "christopherbauer (2 commits)")[![dbrattli](https://avatars.githubusercontent.com/u/849479?v=4)](https://github.com/dbrattli "dbrattli (2 commits)")

---

Tags

validationjqueryvalidateFormsjquery-plugin

### Embed Badge

![Health badge](/badges/chathurabuddi-jquery-validation/health.svg)

```
[![Health](https://phpackages.com/badges/chathurabuddi-jquery-validation/health.svg)](https://phpackages.com/packages/chathurabuddi-jquery-validation)
```

###  Alternatives

[nette/forms

📝 Nette Forms: generating, validating and processing secure forms in PHP. Handy API, fully customizable, server &amp; client side validation and mature design.

54013.2M446](/packages/nette-forms)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.3M29](/packages/wixel-gump)[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[inhere/php-validate

generic data validate, filter library of the php

26787.4k13](/packages/inhere-php-validate)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
