Limiting the size of a <TEXTAREA>?

Results 1 to 2 of 2

Thread: Limiting the size of a <TEXTAREA>?

  1. #1
    Keith Railton Guest

    Default Limiting the size of a <TEXTAREA>?

    Is there an easy way to limit the number of characters that are allowed in a &#060;TEXTAREA&#062;? Is there even a simple way to find out how many characters are actually in a &#060;TEXTAREA&#062;? Why is this form element so rubbish?!<BR><BR>Any help would be greatly appreciated. Thanks.<BR>

  2. #2
    Keith Railton Guest

    Default Ahh! A solution!

    Whoops! Much easier than I first thought, this is how I did it:<BR><BR>&#060;TEXTAREA ID=moo<BR> onKeyDown="<BR> if (this.value.length &#062;= sizeLimit)<BR> this.blur();<BR> "&#062;<BR><BR>I&#039ll try for a longer before making a post next time!<BR><BR>Keith.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts