$('mydiv').on('DOMSubtreeModified', function(){
  console.log('changed');
});