I have multiple droppable areas ..
for(j=0; j<2; j++) {
$('#dropElement' + j).droppable( {
drop : handleElementDrop
});
}
function handleElementDrop( event, ui ) {
}
How can I pass ‘j’ to event handleElementDrop so that i can know to which area the element was dropped to .. ?
I think you could do
to find the
idof the droppable (so you now which droppable has been used)fiddle here http://jsfiddle.net/r5rzX/