[jQuery] Re: jQuery validation custom method doesn't work

2009-07-23 Thread Erwin Purnomo
wow thanks it really worked now the element param is kind of useless right? i wonder why it doesn't work :) anyway huge thanks to Jules On Jul 23, 12:05 pm, Jules wrote: > Your code should have been: > >      $.validator.addMethod('myEqual', function (value, element, param) > { >          retu

[jQuery] Re: jQuery validation custom method doesn't work

2009-07-22 Thread Jules
Your code should have been: $.validator.addMethod('myEqual', function (value, element, param) { return value >= $(param).val(); // this works know }, 'Please enter a greater year!'); On Jul 23, 12:21 pm, Erwin Purnomo wrote: > Hello all > > I have added a method on jQuery