i have one div with scroll.
once i stops scrolling i want to know the scrolltop height.
how can i do this?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muralishankar SundaramPosted Apr 22, 2015, 3:03 AM
By using scrollTop- javascript property, we can easily
var element = document.getElementById("myDIV");
var scrollTopHeight = elmnt.scrollTop;
Regards,
Muralishankar.
Abhijeet SinghPosted Mar 29, 2015, 4:12 AM
http://stackoverflow.com/questions/303767/how-do-i-determine-height-and-scrolling-position-of-window-in-jquery
Joginder BangerPosted Nov 25, 2014, 5:27 AM
If you are using ajax,
.scrollwill not affect the div because it won't find it because it doesn't exist. Instead, delegate with.on:Manish Kumar ChoudharyPosted Nov 25, 2014, 4:17 AM
Hi samanta,
Read these links, it will help you
http://stackoverflow.com/questions/5902822/stopping-fixed-position-scrolling-at-a-certain-point
http://www.wduffy.co.uk/blog/keep-element-in-view-while-scrolling-using-jquery/