Jun
25th
Posted by Ajax Lady
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
Visit author site for updates and samples http://itgroup.com.ph/alphanumeric/


(5 votes, average: 4.80 out of 5)