Results 1 to 3 of 3

Thread: Textarea

  1. #1
    Join Date
    Dec 1969

    Default Textarea

    Can anyone tell how to specify maxlength for a textarea.<BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Textarea

    Use Rows="n" where n is the number or rows and<BR>Cols="n" where n is the width of the text area.

  3. #3
    peterjl@austec.net.au Guest

    Default RE: Textarea

    As far as I have been able to find out there is no maxlength attribute for textareas. You can specify it for textboxes, but they cannot be multi-row. The only way I can see is to use client-side script to prevent further entry of characters, when the limit has been reached, via the events, onkeydown, onkeypress, onkeyup. Or you could just truncate the value via the onexit or onsubmit events.

Posting Permissions

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