Use what you know, do what you always imagined.
$.validator.addMethod("alpha", function (value, element) { var alphaRegExp = new RegExp("^[\\sa-zA-Z]*$"); if (alphaRegExp.test(element.value)) { return true; } else return false; }, "Please enter alphabet" );
No comments:
Post a Comment