Instead of writing validation manually or balancing some unwieldy server-side framework, validity allows you to design client-side validation in a manner that feels natural and straightforward.
jQuery.validity is easy to learn and use. It's totally appropriate in simple validation scenarios, but it's also designed to cleanly and naturally tackle more complex, dynamic, or conditional scenarios.
jQuery.validity takes advantage of jQuery's selector engine to perform validation on logical groupings of inputs, making it declarative and clean. This means that the inputs on a page can be added, removed, or changed and validation will still work without reconfiguration.
jQuery.validity is designed to give you total control over how validation messages appear, so you can easily adapt the way validation errors are displayed to the look and feel of your site.
In short, Validity was conceived with three goals:
- Easy Setup: Validity employs the principle of Convention Over Configuration to keep code manageable and semantic. Very little work is required to put Validity on your page.
- Customizable Appearance: Validity delivers a solid core-library of validation tools that can be used in any web-design. So, in order to be truly versatile, Validation logic is separated from the way it displays errors. With Validity, you, the developer, have full control of error handling and adapting it to the design of your page.