See the documentation for the rules option (http://docs.jquery.com/
Plugins/Validation/validate#options):
$(".selector").validate({
   rules: {
     // simple rule, converted to {required:true}
     name: "required",
     // compound rule
     email: {
       required: true,
       email: true
     }
   }
});

Also, by metadata, he was referring to setting up validation like this
(through the use of the metadata plugin):
<input type="text" class="{required: true, email: true}" />


On Feb 2, 8:40 am, Eridius <[EMAIL PROTECTED]> wrote:
> I am dont see what metadata has to do with this(at far as i know metadata in
> html is what you use inside the head tags, and also don't know what the
> rules-option is.
>
> Jörn Zaefferer wrote:
>
> > Eridius schrieb:
> >> um those is a little bit of an issue you you need you code to me valid.
> >> For
> >> example required in not a valid attribute for an input so adding these
> >> webform attribute will make my code invalid.
>
> > Just use metadata or the rules-option is you code for the w3c validator.
>
> > Jörn
>
> --
> View this message in 
> context:http://www.nabble.com/jQuert-Validate-1.2-issues-tp15231991s27240p152...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to