$('li .class').droppable( { accept: '.someotherclass', drop: function (event, ui) { var id_i_want = $(this).data('id'); } })
Every time i am in that drop function, however, i get the top level li id in id_i_want. Please help me improve the jquery selector on which to apply the droppable. I only have one mention to make, that the tree-like structure CANNOT be modified in any way, no class name change, no nothing.