jQuery Restricting Special Characters and Limiting Number of Fields
<p>I'm trying to use jQuery to restrict special characters for all input fields (except email ) and also restricts the number of characters allowed by ID.</p>

<p>So for example, an input field with the ID "middleinitial" would only allow one character and that character has to be alphanumeric, where the field with the ID "firstname" allows up to 50 characters and has to be alpha and the field ID "zip" has to be numeric and only allows 5 characters.</p>

<p>I found the jQuery Alphanumeric plugin which is no longer supported and Trey Hunner's replacement on stackoverflow (I'm aware of the other posts), but I'm not finding enough documentation to implement since I'm a novice to jQuery.</p>

<p>Any help would be greatly appreciated.</p>
