document.getElementById('logbox').scrollTop =
document.getElementById('logbox').scrollHeight;
I tried `$('#logbox').scrollTop` but there is not this attribute.
How to access DOM attribute through jQuery object? I don't think scrollTop and scrollHeight are element attributes
以上就是How to translate this pure javascript to jQuery?的详细内容,更多请关注web前端其它相关文章!