Im dynamically creating divs with a button using this function
var counter = 1;
$("#button1").click(function(){
$("<div/>", {
"class": "test" + (counter++),
text: "",
}).resizable().draggable()
.appendTo("body");
});
How would I add another button in order to delete these dynamically created divs?
You can also append close button on each created div inorder to close that div