I use a jquery validation plugin and I need to add some extra checking, but I can't edit the main file. How I can do this?
need more documentation
nazmul hasan
2009-07-05 08:19:29
Thanks, thank you very much......
nazmul hasan
2009-07-05 08:36:25
A:
yes i get the solution just taking this i got the solution ,, greaterThanZero is the class name of field to be checked
jQuery.validator.addMethod("greaterThanZero", function(value, element) { console.log(element); return this.optional(element) || /^\d*.{0,1}\d+$/.test(value); }, "* Amount must be greater than zero");
nazmul hasan
2009-07-05 08:35:26