Allows you to limit what characters a user can enter on textboxes or textareas.
by Paulo P. Marinas
downlaod:alphanumeric.zip
DEMO
Did you ever found a need where you want to prevent your user from entering certain characters?
Looking at the plugins available at jQuery, i found a great plugin by Sam Collet called Numeric.
But it was too limited, what if I'm asking the user to create a username? or to enter a number with decimals or an IP Address? There is another great plugin called Masked Input by Josh Bush, which can also control user input by defining a mask. but the problem was the length of text to be input must be defined as well. Again, what if I needed to control input of a username? I can't tell how many characters the user will be using, and I can't force him to use just 8 characters ,so I created AlphaNumeric.
jQuery AlphaNumeric is a javascript control plugin that allows you to limit what characters a user can enter on textboxes or textareas. Have fun.
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

| < Prev | Next > |
|---|
- 30/04/2008 19:06 - facebook searchengine(jquery,php)
- 08/03/2008 20:02 - jQuery Accordion plugin
- 08/03/2008 19:23 - jQuery nice form
- 19/02/2008 04:08 - jquery combobox
- 08/02/2008 22:46 - jQuery Confirm Plugin
- 10/11/2007 22:43 - Tablecloth
- 07/11/2007 22:29 - Pretty Forms
- 07/11/2007 07:07 - AutoCompleter Tutorial - jQuery(Ajax)/PHP/MySQL
- 05/11/2007 17:23 - Tabs - jQuery plugin
- 05/11/2007 07:50 - CSS Dock Menu(jquery)







