Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

text area character limit code without trimming

 
antsi klando
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find a several websites that show the javascript code snippets for textarea maximum length setting.



This code will trim the string and will have another field updating the field count,say 150 characters entered.

Can I get the JavaScript code for stopping the text entered once the maximum limit has already reached?
Also,HTML 5.0 has maxlength and does not support IE.HTML 4.01 does not have maxlength and supports IE.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic