I made a quick drag menu. I basically did this so that you drag an item from the list to the trash div and it will give you a warning saying "gone"
I want to make it so that you cannot just drag and drop an item anywhere. He must enter the basket or ".list4" that he called, or send it back to its original position.
Here is the JSFiddle: http://jsfiddle.net/Gdze8/
Here is the Javascript:
$( init ) function init() { $(".contentItem").draggable(); $(".list4").droppable( { drop: handleDropEvent }); } function handleDropEvent ( event, ui ) { var draggable = ui.draggable; alert("Gone") }
Also, while I am here, will there be a way to delete an item as soon as it appears in the "recycle bin"?
source share