Your SlideShare is downloading. ×
Jquery validate - TuanNA
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Jquery validate - TuanNA

335
views

Published on

jquery validate plugin

jquery validate plugin

Published in: Technology, Design

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
335
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Jquery Validate Name: Nguyen Anh Tuan From: Framgia Company
  • 2. Introduction  This jQuery plugin makes simple clientside form validation trivial  The plugin comes bundled with a useful set of validation methods  including URL and email validation  providing an API to write your own methods
  • 3. Jquery Validate  Current version: 1.11.1  Require: jQuery, tested with 1.6.4, 1.7.2, 1.8.3, 1.9.0  Document: http://validation.bassistance.de/documentation/
  • 4. Plugin methods  validate() – Validates the selected form.  valid() – Checks whether the selected form or selected elements are valid.  rules() – Read, add and remove rules for an element.
  • 5. Validator  Validator.form() – Validates the form.  Validator.element() – Validates a single element.  Validator.resetForm() – Resets the controlled form.  Validator.showErrors() – Show the specified messages.  Validator.numberOfInvalids() – Returns the number of invalid fields.
  • 6. List of built-in Validation methods  required – Makes the element required.  minlength – Makes the element require a given minimum length.  maxlength – Makes the element require a given maxmimum length.  email – Makes the element require a valid email  url – Makes the element require a valid url  date – Makes the element require a date.  digits – Makes the element require digits only.  creditcard – Makes the element require a creditcard number.
  • 7. Reference http://jqueryvalidation.org/ http://jquery.bassistance.de/validate/demo/

×