jQuery Validator : Validate AlphaNumeric + Space and Dash
<p>I have jQuery validation plugins (http://docs.jquery.com/Plugins/Validation) installed on my website.</p>

<p>I'm using this code to validate alpha-numeric from text field, and it works. but it doesn't allow space and dash (-).</p>

<pre><code>$.validator.addMethod("titleAlphaNum", function(value, element, param) 
{
return value.match(new RegExp("^" + param + "$"));
}); 
</code></pre>

<p>how to make it works with space and dash? thanks.</p>
