Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi....

I want to determine a div Scrollbar end using javbscript.I am using div with scrollbar.i want determine whether my div scrollbar reach at end or not i.e i want end scrolltop value.provide a soln. thanx
Posted

1 solution

yeeee i got answer

scrollableDiv is id of div.
var scrollend=
$("#scrollableDiv")[0].scrollHeight - $("#scrollableDiv")[0].offsetHeight);

hence if i want set scroll at the end

$("#scrollableDiv").scrollTop(scrollend)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900