DOM Mutation event in JQuery or vanilla Javascript
This is certainly a hack, but why not patch the underlying DOM methods used to insert the nodes? There are a couple ways to do this: A. You know what specific element will be appended to: var c = document.getElementById(‘#container’); c.__appendChild = c.appendChild; c.appendChild = function(){ alert(‘new item added’); c.__appendChild.apply(c, arguments); } fiddle demo for … Read more