This requires the metadata plugin: class="{required:true,vinUS:true}"

This doesn't: class="required vinUS" minlength="2"

Jörn

On Thu, Apr 23, 2009 at 10:09 PM, Brad <nrmlcrpt...@gmail.com> wrote:
>
> Thanks Jorn. Since I wrote I've been looking at the additional-
> methods.js to get ideas on how to write some custom filter and found
> this example:
>
> class="{required:true,vinUS:true}"
>
> Is that object syntax required when using custom filters as opposed to
> simply
>
> class="required vinUS"?
>
> re: "where no parameters are needed" I assume you can't do something
> like this:
>
> class="required:true,minlength:2"?
>
> On Apr 23, 1:57 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
> wrote:
>> The list applies to metadata as well. You can specify any method as an
>> attribute, and where there are no parameters needed, use a class
>> instead.
>>
>> Jörn
>>
>> On Thu, Apr 23, 2009 at 9:49 PM, Brad <nrmlcrpt...@gmail.com> wrote:
>>
>> > Are the options, usage and limitations for the jQuery Validation rules
>> > using metadata in markup, e.g., class="required date", documented
>> > anywhere?
>>
>> > There 
>> > ishttp://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation...,
>> > but that is for setting up rules in the JS.

Reply via email to