码迷,mamicode.com
首页 > 其他好文 > 详细

ie textarea不支持maxlength textarea限制长度

时间:2015-03-09 18:58:20      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

//ie textarea不支持maxlength
$(‘#verify_note‘).bind(‘input propertychange‘, function() {
if (this.value.length > 100) {
this.value = this.value.substr(0, 100);
}
});

ie textarea不支持maxlength textarea限制长度

标签:

原文地址:http://www.cnblogs.com/gaoyinghui/p/4324137.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!