Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var remove = d3.selectAll("#" + uniqueID)
- .append("div")
- .attr("id", uniqueID + "remove")
- .attr("class", "refreshremove")
- .append("button")
- .attr("class","removebutton")
- .append("span")
- .attr("class", "glyphicon glyphicon-trash")
- .on("click", function(d) {
- console.log("I am going to remove this");
- d3.selectAll("#" + uniqueID)
- .remove();
- });
Add Comment
Please, Sign In to add comment