Validatious 2.0

Easy form validation with unobtrusive JavaScript

Accessing core objects

You can access v2.Field and v2.CompositeFormItem objects through the item property of the facade objects. This way you can call core API methods which aren't exposed through the DSL API.

var name = "name".is("required").and("word");
name.item.instantWhenValidated = false;

Next: Specify custom error messages | Back to DSL features index

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