javascript:
var textarea = document.getElementById('textarea_id'); textarea.scrollTop = textarea.scrollHeight;
jQuery:
$(document).ready(function(){ $('#textarea_id').scrollTop($('#textarea_id')[0].scrollHeight); });
原问题 stackoverflow
其他 textarea 相关
readonly 属性: <textarea readonly>All things are easy that are done willingly.</textarea>
textarea 换行符: var newMess = oldMess + "
" + addedMess ;
原问题 开源中国