프로그래밍
[JAVASCRIPT] 동적 height 조절
ReturnToHome
2016. 12. 24. 21:39
text area 에 동적으로 append 를 사용하여 raw 를 추가 할 시 스크롤이 생기게 되는데
그럴 경우 스크롤을 항상 최하단으로 내리기
var t_height = $("#id_textarea")[0].scrollHeight;
$("#id_textarea").animate({scrollTop : t_height},'slow');