HTML5 Zone is brought to you in partnership with:

Hirvesh Munogee is a freelance web developer who also happens to have a passion for blogging. Hirvesh is a DZone MVB and is not an employee of DZone and has posted 177 posts at DZone. You can read more from them at their website. View Full User Profile

Parsley.js - Powerful, UX Aware & Dead Simple JavaScript Forms Validation Library

01.22.2013
| 4380 views |
  • submit to reddit

Parsley.js is a JavaScript library for forms validation. Parsley.js takes a different approach to forms validation. Instead of making you use JavaScript for validating your forms, Parsley.js uses data attributes to achieve the same effect.

To use Parsley.js, you just need to include the JavaScript library then use a data attribute on the form element you want to validate. You can use the built-in validators of Parsley.js on specific fields of the form as data-attributes and Parsley.js does the rest for you.

Parsley.js is very lightweight, at only 12K minified. It is available as a standalone JavaScript library or as a jQuery or Zepto.js plugin.

Requirements: None
Demo:http:/ / parsleyjs. org/ documentation. html
License: MIT License

Published at DZone with permission of Hirvesh Munogee, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)