If you don’t want use timer and check innerHTML you can try this event
$('mydiv').on('DOMSubtreeModified', function(){
console.log('changed');
});
More details and browser support datas are Here.
If you don’t want use timer and check innerHTML you can try this event
$('mydiv').on('DOMSubtreeModified', function(){
console.log('changed');
});
More details and browser support datas are Here.