document.change jquery code example
Example 1: jquery on dom change
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
Example 2: jquery on element change
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});