Skip to content

Instantly share code, notes, and snippets.

@amykangweb
Created October 29, 2015 07:04
Show Gist options
  • Save amykangweb/5755dcb522e8e2167009 to your computer and use it in GitHub Desktop.
Save amykangweb/5755dcb522e8e2167009 to your computer and use it in GitHub Desktop.
var removeText = function() {
var paraElement = this;
container.removeChild(paraElement);
}
var bindElementEvents = function(element) {
element.onclick = removeText;
}
newButton.onclick = addText;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment