Reputation:
I have tried attaching the even onchange and change(with jquery) to an element that updates every couple seconds. Neither of these events are raised when the inner html is changed. How can I detect with with javascript or jquery?
Upvotes: 2
Views: 1204
Reputation: 269
is it updating by ajax? can't you just store the value before the call is made and compare it with what is returned?
Upvotes: 0
Reputation: 28753
Maybe you're looking for the DOMSubtreeModified
event? See the DOM event reference on MDN.
Upvotes: 2