【发布时间】:2020-06-20 05:09:29
【问题描述】:
如果文本行超过 100,如何自动删除 textarea 上的文本?我想这样做是因为它会降低浏览器的速度。
HTML:
<div class="form-group">
<textarea class="form-control" id="text" wrap="off"
placeholder="Autodelete the text here if value exceed more than 100!"></textarea>
</div>
【问题讨论】:
-
您要删除整个文本吗?还是 100 个字符后的文本?到目前为止你尝试过什么?
标签: javascript html auto