Over a million developers have joined DZone.
Platinum Partner

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

· Web Dev Zone

The Web Dev Zone is brought to you in partnership with Mendix. Download this Forrester Report to gain a better understanding of the low-code platform market and how to make a strategic platform selection you won’t regret.

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

The Web Dev Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.

Topics:

Published at DZone with permission of Hirvesh Munogee , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}