Well, the restriction is add field validators without knowing
the id (I'm working with C# and I'm adding fields dinamically to the
form), my
option was try to add validator without add a lot of code in tags
(for example utilizing the title for every error message because are
used for usability and for display info for the users). Other reason
is the code legibility.

In this moment I've created the new validators and I've added them to
the fields, and woks, but the displayed messages are the fields title,
that contain message like "This is the project name".

On 16 dic, 08:50, ycuentocorto <olivares.rodr...@gmail.com> wrote:
> yeah, Jorn. I saw this method, but I have a problem. How can I
> personalize the messages for the new class validators?
>
> Thanks a lot.
>
> On 16 dic, 05:26, "Jörn Zaefferer" <joern.zaeffe...@googlemail.com>
> wrote:
>
> > Take a look at 
> > this:http://docs.jquery.com/Plugins/Validation/Validator/addClassRules#nam...
>
> > Though you should use classes that aren't already referring to
> > existing methods, eg. date is taken.
>
> > Jörn
>
> > On Mon, Dec 15, 2008 at 9:26 PM, ycuentocorto
>
> > <olivares.rodr...@gmail.com> wrote:
>
> > > Can I name the validations by classname, in order to verfify all
> > > fiuelds that match with specified classname?
>
> > > For example set that all input that have a class  "date"  (<input
> > > class="other_class date ..." ...) will be checked in required, min and
> > > max lenght an others.
>
> > > Thanks in advance.

Reply via email to