Add required-field, email format, and length validation to an HTML form without writing any custom JavaScript.
Show inline error messages next to a form field as the user moves between fields, before they even submit.
Validate a numeric input to ensure it falls within a specific range using only HTML attributes.
Project is in maintenance mode, no new features are planned, only bug fixes are accepted.
Parsley.js is a library for validating web forms without writing JavaScript code. Instead of scripting custom checks yourself, you add special attributes directly to your HTML form fields, such as marking a field as required or specifying that an email must be a valid format. Parsley reads those attributes and enforces the rules automatically when the user submits the form or moves between fields. The library handles common validation needs like required fields, minimum and maximum lengths, numeric ranges, email formats, and pattern matching. Because the rules live in the HTML markup rather than separate script files, it is straightforward to add or change validation for a form without touching JavaScript at all. Parsley depends on jQuery, the widely-used JavaScript utility library, and requires version 1.8 or higher. Beyond that dependency, no build step or framework is needed to get started. The project is in maintenance mode. No new features are planned, and the current maintainer accepts bug fix contributions but asks that anyone wanting to work on new features check in before starting. The current stable version is 2.9.2. The library is released under the MIT license, which allows use in commercial and open source projects alike. Community questions are directed to Stack Overflow rather than the issue tracker.
← guillaumepotier on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.