【发布时间】:2020-03-22 18:32:08
【问题描述】:
我正在尝试在文本区域中插入新数据而不影响上一个:
<textarea class="form-control" rows="5" id="data" name="data">
roma is the most visit
</textarea>
$("#data").val('new line without delete the previous one ');
我的期望:
<textarea class="form-control" rows="5" id="data" name="data">
roma is the most visit
new line without delete the previous one
</textarea>
那我该怎么做呢?
【问题讨论】:
标签: javascript jquery javascript-objects jquery-events