Aha! Thanks Jorn!

btw - is there a problem with your comments system?


Jörn Zaefferer wrote:

fambizzari wrote:
Anyone have any idea where we've gone wrong?
No worries!

The plugin offers two ways for specifying validation rules.
1. Plugin options:

$("#myform").validate({
    rules {
        firstname: { 4required: true }
    }
});

2. Metadata:

$("#myform").validate();
<input name="firstname" class="{required:true}" />

The first approach works out of the box, the second requires the metadata plugin. If you don't load the metadata plugin and don't specify the rules option, the error is thrown that .data is not a function, because that method is provided by the metadata plugin.

Reply via email to