I\'m writing a custom method for a jQuery plugin:
jQuery.validator.addMethod(\"alphanumeric\", function(value, element) { return this.optional(elemen
If you want to use Spanish chars in your alphanumeric validation you can use this:
jQuery.validator.addMethod("alphanumeric", function(value, element) { return this.optional(element) || /^[a-zA-Z0-9áéíóúÁÉÍÓÚÑñ ]+$/.test(value); });
I also added a blank space to let users add words