Detecting change to a textarea when change not initiated by user
I'm using a text area to display textual updates to a user from the server. I'm inserting the text at the bottom of the textarea and need to set the scrollbar to the bottom of the textarea after every update. The problem is that the onChange event only fires if the user actually changes something in the text area, not if it is changed by an ajax update.
Does anyone know of a way to detect if there has been an update to a textarea that was NOT triggered by a user?