Hi
at first, I really thanks for great efforts in Jquery and
validator.they reduce our time and work less than half. now, we can't
write even simple script without them

recently, I tried to make custom rule method that called with 3
arguments
such as...

<input id="WBC_I" type="text" size="6" validate="range_exp:[ 1, 999,
ND ]" value="" name="WBC_I"/> ( I use metadata plugin )

and my custom method is

jQuery.validator.addMethod("range_exp", function(value, element,
params) {
    return this.optional(element) || ( (value >= params[0] && value <=
params[1]) || value == params[2] );
}, "Please enter between {0} and {1} or {2}");

I just need some exception for range rule. but It didn't work. IMO
there are some problems in params handle process. any idea?

Thanks.

yongbin


Reply via email to