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?
Add a comment
|
1 Answer
Modify the scrollTop-property of the element to move the scrollbar.
https://developer.mozilla.org/en/DOM/element.scrollTop