Events on Sortable drag and drop items - question
Hi
I'm trying to get drag item details on receive event but couldnt understand from documentation how its being done.
My code loks like this:
// Supply a callback function to handle the receive event as an init option.
$("#sortable1" ).sortable({
receive: function(event, ui)
{
var items = $( "#sortable1" ).sortable( "option", "ui.item" );
alert(items);
}
});
//Bind to the receive event by type: sortreceive.
$( "#sortable1" ).bind( "sortreceive", function(event, ui) {
var items = $( "#sortable1" ).sortable( "option", "ui.item" );
alert(items);
});
Need assistance
Thanks..