I'm having some trouble properly validating a name format with a predefined jquery validation tool ,
I want the name to accept characters only and i even used a correct regex but it is still accepting numbers .
I'm using this script : http://jqueryvalidation.org/
This is what i added basically :
names: function(value, element) {
return this.optional(element) || /^\w+$/.test(value);
},
FULL JQUERY FILE :
file 1 : http://jsfiddle.net/EjSbd/ (script.js)
file 2 : http://jsfiddle.net/qM4Uz/ (jquery.validate.js)
full : http://jsfiddle.net/EjSbd/ ( doesn't compile tho )