Coder Social home page Coder Social logo

hetian9288 / jquery-validation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jquery-validation/jquery-validation

0.0 2.0 0.0 9.63 MB

jQuery Validation Plugin

Home Page: http://jqueryvalidation.org/

License: MIT License

JavaScript 68.15% HTML 23.02% PHP 0.64% CSS 8.19%

jquery-validation's Introduction

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.

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. In case you need to adjust the built-in validation regular expression patterns, please follow the documentation.

License

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

jquery-validation's People

Contributors

1darvesh avatar abdullahobaid avatar adamtibi avatar ajaysinghj8 avatar andrewraycode avatar anroots avatar arkni avatar christopherbauer avatar cope avatar dbrattli avatar digitalica avatar dorner avatar endelwar avatar g1smd avatar hazzik avatar jamierytlewski avatar jaubourg avatar johnnyreilly avatar juanmcuello avatar jzaefferer avatar maks3w avatar mlynch avatar nschonni avatar paladox avatar patheard avatar rskm1 avatar staabm avatar steelywing avatar synchro avatar thomasgohard avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.