I ran into a javascript alphanumeric validation problem, though it was quite easy to validate it by javascript using regular expression but I would have to define rules for each pattern in order to validate them, I found a nice jquery script contributed by Paulo P. Marinas. This script provides many option to validate a string.
API Functions
alphanumeric – allow both alphabet and numeric characters
alpha – allow only alphabet characters
numeric – allow only numeric characters
API Properties
allow – add excempted characters to the rule of prevention
ichars – define a custome set of characters to prevent
allcaps – allow only capital letters to be entered
nocaps – allow only lowercase characters to be entered
Jquery Alphanumerical Validation
I ran into a javascript alphanumeric validation problem, though it was quite easy to validate it by javascript using regular expression but I would have to define rules for each pattern in order to validate them, I found a nice jquery script contributed by Paulo P. Marinas. This script provides many option to validate a string.

API Functions
alphanumeric – allow both alphabet and numeric characters
alpha – allow only alphabet characters
numeric – allow only numeric characters
API Properties
allow – add excempted characters to the rule of prevention
ichars – define a custome set of characters to prevent
allcaps – allow only capital letters to be entered
nocaps – allow only lowercase characters to be entered
Demo: http://itgroup.com.ph/alphanumeric/
Download: http://www.ajaxlady.com/downloads/alphanumeric.zip
Source: http://itgroup.com.ph/alphanumeric/
Related Listings: