English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I can limit the amount of characters that can be entered into normal form fields but not textareas. How would i do this?

2006-12-11 03:49:08 · 2 answers · asked by peter s 1 in Computers & Internet Programming & Design

2 answers

Textareas don't have a parameter that can be used to limit input.

You could use JavaScript to count the number of characters in the textarea and shut off additional input, but that won't work if people disable or don't support JavaScript.

http://javascript.internet.com/forms/limit-textarea.html

2006-12-11 03:56:28 · answer #1 · answered by Anonymous · 1 0

Best way that I've been able to sniff out is via a bit of Javascript...Check this out:


http://www.dynamicdrive.com/dynamicindex16/limitinput.htm

2006-12-11 12:01:17 · answer #2 · answered by poeticjustice72182 3 · 0 0

fedest.com, questions and answers