I can not programmatically scroll down. When adding a textarea value, the div scrolls, but if I manually scroll this div up, the next time it is added, the scroll won't work as it should. How do I account for custom scrolling?
$(function (){ $('button').click( function(){ $('div').append("<p>" + $(this).prev().val() + "</p>"); $('div').scrollTop($('div').height() + $('div').scrollTop()); }) });