Konstantin Mokhov Konstantin Mokhov - 7 months ago 27
jQuery Question

event, when div is changed

I have some DOM elements, like this

<div class='parent'>

How I can track event, when 'parent' div has changed? As example I'm add
programmatically, with
, or i'm drag div3 to 'parent' div.


try this:

$('.parent').on("DOMNodeInserted", function(){
  //your code