Skip navigation
singhalkapil
Currently Being Moderated

Limiting the Chars in Text Area

Aug 2, 2012 4:34 AM

Hi,

 

I am using a TextArea where its property "maxChars" is being set to 250.

 

It is working fine if we are entering the 250 chars.

 

But if we have typed more than 250 chars in an editor and than copy-paste those chars, the text box is accepting those chars even if they are more than 250 also.

 

How to restrict this ? Is there any other property like "maximum" in text area to control this ?

 
Replies
  • Currently Being Moderated
    Aug 6, 2012 2:41 AM   in reply to singhalkapil

    Try applying a check on changing event of TextArea. Check for your maxChars and accrodingly show your message.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points