【转】textarea 限制字数

<textarea rows="5"  maxlength="200" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" ></textarea>

来源:https://www.cnblogs.com/duzjextjs/p/5915405.html

posted @ 2018-07-18 15:43  顾笙言啊顾笙言  阅读(108)  评论(0编辑  收藏  举报