Yes. On Mon, Aug 29, 2011 at 8:07 PM, Philip Thompson <[email protected]>wrote:
> Ok, I saw that, but wasn't sure if it was just another way of doing it. Are > we able to solely rely on data-* attributes? > > Thanks for a quick response, > ~Philip > > > On Mon, Aug 29, 2011 at 10:03 PM, Aaron Newton <[email protected]> wrote: > >> 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/ >>> >> >> > > > -- > http://lonestarlightandsound.com/ >
