Results 1 to 4 of 4

Thread: textarea

  1. #1
    Join Date
    Dec 1969

    Default textarea

    how do i set a maxlength on a text area

  2. #2
    Big Al Guest

    Default RE: textarea

    I don&#039t think you can. the only way to sort of do it is to control the box size. the textarea it&#039s self has no charater limit.

  3. #3
    rho Guest

    Default RE: textarea

    u can control the maxlength directing the text area value to a js fun. that will throw an error incase the length of the text area var is greater than the specified value. maxLength as such cannot be applied to text area<BR><BR>hope this helps<BR>rho<BR>

  4. #4
    E! Guest

    Default RE: textarea - JS Code Example

    Code example:<BR><BR>function chkLen(s,inLen,errString)<BR>{<BR> var len=s.length<BR> if(len&#062;inLen)<BR> {<BR> alert("The "+errString+" field is too long!
    The max size is "+inLen+" and you have "+len+".
    Please shorten this field.")<BR> return true<BR> }<BR> return false<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