I have used this code:
In order to limit the chars of textarea to be 1500 chars, but it not works
What could be the problem?
you capture keypress event and then calculate text().length on a document level, not for specific textbox
Did You see
The problem was with the defintion of this rextarea to be "richtext"