jscript_junkie
08-10-2002, 03:53 PM
I found a script on Dynamic Drive that allows you to restrict how many characters can be entered into a form field. Very useful if asking for state abreviations, phone numbers, zip codes, etc.
In addition, it also tells the user how many characters they have left to type! Very nice.
http://www.dynamicdrive.com/dynamicindex16/limitinput.htm
<edit my="post" />
To add to this, there is also a form validation page which allows very strict restraints. Example, if asking for a favorite radio station, it will require the data to be in the ##.# number format. Another nice script.
http://www.peterbailey.net/jsdemo/
In addition, it also tells the user how many characters they have left to type! Very nice.
http://www.dynamicdrive.com/dynamicindex16/limitinput.htm
<edit my="post" />
To add to this, there is also a form validation page which allows very strict restraints. Example, if asking for a favorite radio station, it will require the data to be in the ##.# number format. Another nice script.
http://www.peterbailey.net/jsdemo/