jquery listen addition of child code example Example: jquery on dom change $("#someDiv").bind("DOMSubtreeModified", function() { alert("tree changed"); });