I have jQuery validation plugins (http://docs.jquery.com/Plugins/Validation) installed on my website.
I'm using this code to validate alpha-numeric from text field, and it works. but it doesn't allow space and dash (-).
$.validator.addMethod("titleAlphaNum", function(value, element, param)
{
return value.match(new RegExp("^" + param + "$"));
});
how to make it works with space and dash? thanks.