I wrote a decimal validation method to validate the text in a texbox:
$.validator.addMethod("decimalCheck", function(value) {
var v = new RegExp("^\d*[0-9](\.\d*[0-9])?$", "g");
return v.test(value);
}, "Error here");
The first time, I inputed "12,34" string to textbox and error message display. The second time, I inputed "12" string to textbox. That is valid string but error message doesn't hide.
Please help me resolving thanks & best regards