Skip to content

Instantly share code, notes, and snippets.

@jayllellis
Created April 6, 2015 04:28
Show Gist options
  • Save jayllellis/54f0c79bb22f12d0bdd9 to your computer and use it in GitHub Desktop.
Save jayllellis/54f0c79bb22f12d0bdd9 to your computer and use it in GitHub Desktop.
Detect when an element in the DOM's content changes.
$(document).ready(function(){
$('.some-element').bind('DOMSubtreeModified', function() {
// Do something
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment