Skip to content

Instantly share code, notes, and snippets.

@IgorGavrilenko
Last active October 15, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorGavrilenko/9cf8777243da1cca70fa12554cfb4869 to your computer and use it in GitHub Desktop.
Save IgorGavrilenko/9cf8777243da1cca70fa12554cfb4869 to your computer and use it in GitHub Desktop.
DOMNodeInserted
if ($('.el').length) {
}
$('.parent').on("DOMNodeInserted", function (event) {
$(event.target).find('.el').addClass('is-el');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment