h
> isn't the case. Look at the source for equalTo to get an idea how to
> implement your own.
>
> Jörn
>
> On Sun, Mar 22, 2009 at 11:56 PM, linoj wrote:
>
> > fyi, this is what i've tried, but it doesnt work :/
>
> > $.validator.addMethod("c
e a validation method
> > called "confirm" that does the following:
>
> > suppose my form has
> >
> >
>
> > what I'd like is the confirm method to look at the current object's
> > id, strip off the "_confirm" and check that the value matches the
> > corresponding field. I'd like this to be reusable.
>
> > I've made several attempts at this but...
>
> > thanks
>
> > linoj
I ended up adding
$.validator.messages["required"] = "can't be blank"
after my call to jQuery.validator.setDefaults({ ... })
On Mar 22, 1:23 pm, linoj wrote:
> Hi,
> using validate plugin, I'm aware you can change the message for an
> individ
Hi,
using validate plugin, I'm aware you can change the message for an
individual field, but can i change the default message, eg for
required say "can't be blank" rather than "This field is required"
thanks
linoj
the confirm method to look at the current object's
> > id, strip off the "_confirm" and check that the value matches the
> > corresponding field. I'd like this to be reusable.
>
> > I've made several attempts at this but...
>
> > thanks
>
> > linoj
5 matches
Mail list logo