Skip to content

Instantly share code, notes, and snippets.

@baghayi-gist
Created November 13, 2012 07:22
Show Gist options
  • Save baghayi-gist/4064465 to your computer and use it in GitHub Desktop.
Save baghayi-gist/4064465 to your computer and use it in GitHub Desktop.
JavaScript: Remove Element Function
<script>
function removeElement(child, parent)
{
var parent = document.getElementById(parent);
var child = document.getElementById(child);
parent.removeChild(child);
return false;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment