12
I need to know if a certain div
was rolled to the end, using jQuery. I’m having problems because the height of the div
is not constant. The goal is that the automatic scrolling of the div
does not occur, unless it is already rolled by the user until the end.
Code of the automatic scrolling:
$(".roller").animate({"scrollTop": $(".roller")[0].scrollHeight}, 500);
If you are having problems, then you have already tried something. Can you show us how you did it? Maybe you are close to the final solution. And what was the matter with her?
– Guilherme Bernal
@Guilhermebernal simply didn’t work it was blocking the execution of the script. I deleted the old code a month ago, but I had to go back to the project.
– Calebe Oliveira