I have a div divCoapp1
whose DOM structure can be changed using javascript or ajax calls
How can i attach an eventhandler to its content change?
I have followed this which uses bind method --> Fire jQuery event on div change
Something like this
$('body').on('DOMNodeInserted DOMNodeRemoved','#div1coApp1',function(){
alert('Hello');
});
But since bind is now deprecated i want to use on method. How can i do that ?