Guest User

Untitled

a guest
Apr 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var remove = d3.selectAll("#" + uniqueID)
  2. .append("div")
  3. .attr("id", uniqueID + "remove")
  4. .attr("class", "refreshremove")
  5. .append("button")
  6. .attr("class","removebutton")
  7. .append("span")
  8. .attr("class", "glyphicon glyphicon-trash")
  9. .on("click", function(d) {
  10. console.log("I am going to remove this");
  11. d3.selectAll("#" + uniqueID)
  12. .remove();
  13. });
Add Comment
Please, Sign In to add comment