Skip to content

Instantly share code, notes, and snippets.

@mkpt
Created October 24, 2017 23:34
Show Gist options
  • Save mkpt/b00fda2a6626197295f9ee113e688b7a to your computer and use it in GitHub Desktop.
Save mkpt/b00fda2a6626197295f9ee113e688b7a to your computer and use it in GitHub Desktop.
for (var i=0; i < myIds.length; i++) {
try {
var el = document.getElementById( myIds[i] );
el.parentElement.removeChild(el);
} catch(e) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment