I have a textarea that is being dynamically reloaded as user input is being sent in. It refreshes itself every couple seconds. When the amount of text in this textarea excee
In your HTML ...
In your Javascript ...
I have found that you need to put the code to set the scrollHeight into a separate function after loading the new value into the text area.