Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

text area character limit code without trimming  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!