2

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?

1
  • Do you control the updates? If so, just trigger a custom event whenever you update, and define a handler for it. Commented Nov 25, 2011 at 20:31

2 Answers 2

2

Maybe you're looking for the DOMSubtreeModified event? See the DOM event reference on MDN.

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

Comments

0

is it updating by ajax? can't you just store the value before the call is made and compare it with what is returned?

Comments

Your Answer

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