jQuery Form Validate() : How to setup default messages?

asp.net-ajax, jquery, jquery-validate

Solution

you can add your messages like so.

    $.extend($.validator.messages, {
        required: "your msg",
        email: "your email msg",
        digits: "your digits msg"
    });

See setDefaults

Problem

Until now, I've used jQuery validation plugin with previously defined fields. Now I'm working with a dynamic form. Fields have their validation needs mapped by its classes (e.g. " required "), but I don't see how to customize the messages jQuery validate throws.

Original source