Limit the Characters in textarea in jquery
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to Limit the characters in a textare in jquery .here is my jquery code $('#editnote-tooltip-wrapper').appendTo($(this).closest('.editnote-tip-wrapper')).fadeIn(300).css({ 'position': 'absolute', 'left': 0, 'top': 0, 'z-index': '10000' }).find('.content').html('<textarea cols="5" rows="5" class="elastic" style="overflow: hidden; height: 150px;"></textarea>' + $html); how can I make this possible.anyone help? 回答1: to limit the character you can just use maxlength attribute of html. like <textarea cols="5" rows="5" class="elastic" style=