I am using gridster.js and am trying to figure out a good way to set it up where I can drag one of the widgets into a "trash can" like div and have it remove that widget from the grid. If anyone has any thoughts on this that would be great. Here is what I found but was trying to figure out the best way to make it work with gridster.
$(".widget").draggable();
$('#trash-can').droppable({
drop: function(event, ui) {
$(ui.draggable).remove();
}
});
Any thoughts? Thanks in advance.