0

I have a table which grows dynamically with images when I select images from a list. I have put this table inside a div and set autoscroll to the div. I need this scroll bar to move automatically with every new content I add to the table. Is there a function similar to window.scrollby which I can use to scroll the div, instead of the entire window?

1 Answer 1

1

Modify the scrollTop-property of the element to move the scrollbar.
https://developer.mozilla.org/en/DOM/element.scrollTop

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.