0
I’m using the Jquery Validate plugin to validate facebook usernames, and by default it can have letters, numbers and points.
Ex: joao, joao22, joao.maluco22
How to validate this with jQuery Validate?
The pattern of the methods is like this:
jQuery.validator.addMethod("lettersonly", function(value, element) {
return this.optional(element) || /^[a-z]+$/i.test(value);
}, "Somente letras");