Parsley uses a specific DOM API which allows you to configure pretty much everything directly from your DOM, without writing a single javascript configuration line or custom function.

Parsley's default DOM API is Parsley adds many classes and elements in the DOM when it validates.

validating required fields-83

In general, you are free to name your fields like you want to, but there are two limitations: ).

Form fields can be displayed in a very flexible grid.

Parsley adds its share of classes and elements, to ease nice UI validation result display.

By default, it will add Field instances have low level methods to add, update & remove manage error messages.

You are strongly encouraged to customize them in your own stylesheets, but here is the "standard" Parsley css file that is used here on the documentation and examples, if you want to use it to bootstrap your projects with Parsley.

Parsley comes with various error messages for its built-in validators.This documentation also provides the complete annotated source.Please take 5 minutes of your time to have a quick glance at it, and at least understand the architecture (Parsley, Parsley Form, Parsley Field, Parsley Validator, Parsley UI, Utils, Pub/Sub..), it will heavily ease the lecture below. Parsley will parse the input's value and pass the date, or reject the value if it's not an acceptable date.You'll see here the different protagonists involved and how you can configure them to fit your desired validation.Of course, this documentation tries to be the most exhaustive possible and relatively easy to understand.* * Copyright (c) 2012 Yannick Albert ( * Licensed under the MIT license (