http://www.kinopyo.com/blog/javascript-get-scrollbar-to-bottom
$.fn.scrollToBottom = function(){ if(this.length == 0 || !this[0].scrollHeight) return; this.scrollTop(this[0].scrollHeight); }; $(function(){ $("#scrollItem").scrollToBottom(); });
http://www.kinopyo.com/blog/javascript-get-scrollbar-to-bottom
$.fn.scrollToBottom = function(){ if(this.length == 0 || !this[0].scrollHeight) return; this.scrollTop(this[0].scrollHeight); }; $(function(){ $("#scrollItem").scrollToBottom(); });