Validatious 2.0

Easy form validation with unobtrusive JavaScript

Specify custom error messages

When customizing field names isn't enough customizing of error messages you can override the full error message through HTML as well. By setting the title attribute on the field element (input, select or textarea) in question, this will be used when the field fails.

Note: when overriding error messages this way, this single message will apply to all validators for this field. If you need to control per field per validator messages, you need to get your hands dirty with either the core API or the DSL extension.

Example

Next: Scoping validators | Back to HTML extension features index

© 2008 Christian Johansen. Validatious is licensed with a BSD License, documentation and site content with CC Attribution-Share Alike. About.