I\'m using the validate plugin from http://bassistance.de/jquery-plugins/jquery-plugin-validation/
What i\'m trying to find is a way to make some of my form fields a
Try like this:
var numbers = /[0-9]+/; var SpCharacters = /^\s*[a-zA-Z0-9\s]+\s*$/; if (!numbers.test(name) && !SpCharacters.test(name)) { return [false, "Name should be alphabetical.", ""]; }