Take the 2-minute tour ×  is there any way to trigger event (may
be custom) on attribute change?  Let's say, when IMG src is
changed or DIV's innerHtml?  share|improve this question  4
Answers 4  up vote 27 down vote accepted  You are referring to
DOM Mutation Events. There is poor (but improving) browser
support for these events. Mutation Events plugin for jQuery
might get you some of the way.  share|improve this answer +1 The
mutation events plugin is excellent. –  lonesomeday Dec 30 '10
at 10:53 DOM mutation events are actually reasonably well
supported among browsers. It's just that IE doesn't support them
at all (although IE 9 will). –  Tim Down Dec 30 '10 at 11:50
@TimDown if it comes to IE, it's not a strange thing. – 
jmendeth Jun 6 '12 at 12:23 These are now deprecated in favor of
MutationObserver, developer.mozilla.org/en-
US/docs/Web/API/MutationObserver –  DanielB Jul 22 '13 at 4:21
For me this answer is too succinct. I couldn't find out how to
use the plugin for jquery. But the answer of Mats is s