|
|
Q1047 How do you limit the length (in characters) of text entered in a textarea form field?
irt.org | Knowledge Base | JavaScript | Form 5 | Q1047 [ previous next ] Q1047 How do you limit the length (in characters) of text entered in a textarea form field?This can't be done whilst the user is entering data into the textarea - only after they have finished:
This isn't true any more for all browsers. You can use onkeypress or onKeyUp for "realtime" checks. It doesn't work on older browsers, so it's best used in addition to a check like the one above:
Feedback on 'Q1047 How do you limit the length (in characters) of text entered in a textarea form field?' |
-- div -->
|