Finding the maximum bottom value of scrollTop on a div?
In vanilla JS:
var maxScrollTop = el.scrollHeight - el.offsetHeight
Here's a version that accounts for padding and uses prop
instead of accessing the DOM element directly.
$('#box').prop('scrollHeight') - $('#box').innerHeight();
here you go:
var trueDivHeight = $('.someclass')[0].scrollHeight;
var divHeight = $('.someclass').height();
var scrollLeft = trueDivHeight - divHeight;
alert(scrollLeft);
Simplified