[jQuery] Re: validate "confirm" method

2009-03-22 Thread linoj
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

[jQuery] Re: validate "confirm" method

2009-03-22 Thread linoj
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

[jQuery] Re: validate required "cant be blank"

2009-03-22 Thread 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

[jQuery] validate required "cant be blank"

2009-03-22 Thread linoj
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

[jQuery] Re: validate "confirm" method

2009-03-22 Thread 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