Bounty Bob
September 13th, 2002, 09:43 AM
Hi all.
I am using a textarea element in my web page and am trying to restrict the number of characters entered into it. Since it doesn't seem to have a MaxLength property I tried using JavaScript (ie. document.myForm.myTextArea.length) but this doesn't seem to work either. Any ideas how I can either limit the number of characters entered into it in the first place or, failing that, retrieve the number of characters entered and warn the user?
Cheers in advance,
Rob
I am using a textarea element in my web page and am trying to restrict the number of characters entered into it. Since it doesn't seem to have a MaxLength property I tried using JavaScript (ie. document.myForm.myTextArea.length) but this doesn't seem to work either. Any ideas how I can either limit the number of characters entered into it in the first place or, failing that, retrieve the number of characters entered and warn the user?
Cheers in advance,
Rob