jQuery validate regex to disallow numerics and special characters
<p>I have a form that requires a field to not have any special characters or numerics. Currently it works fine with:</p>

<ul>
<li><code>abc</code>: no error.</li>
<li><code>123</code>: error.</li>
<li><code>!@#$</code>: error.</li>
</ul>

<p>The issue is when I add something like <code>#$%abc</code> or <code>abc123</code> it does not produce the the error I would expect.</p>

<p>The function I am using looks like:</p>

<pre><code>$.validator.addMethod("checkallowedchars", function (value) {
    var pattern = new RegExp('[A-Za-z]+', 'g');
    return pattern.test(value)
}, "The field contains non-admitted characters");
</code></pre>

<p>JSFiddle shows the function/regex I am using: <a href="http://jsfiddle.net/nmL8maa5/" rel="nofollow">http://jsfiddle.net/nmL8maa5/</a></p>