The class name stuff is deprecated. Right from the docs:

// the minimum length the user can supply is the integer 10
<input data-validators="minLength:10" />


On Mon, Aug 29, 2011 at 7:35 PM, Philip Thompson <[email protected]>wrote:

> Hi all.
>
> I was thinking about using Form.Validator and Clientcide's FormValidator
> behavior, but I don't like how the validation is kept as a class name:
>
> <input type="text" class="required minLength:3" />
>
> I would much rather use the HTML5 data-* attributes:
>
> <input type="text" data-validate-rules="{required:true, minLength:3}" />
>
> ...or something like that. Is there a way to setup the form validator to
> use this method instead of looking at the classes? Set me straight if I'm
> missing something.
>
> Thanks!
> ~Philip
>
> --
> http://lonestarlightandsound.com/
>

Reply via email to