0

I have something like this:

$('#mover' ).draggable({});
$('div').droppable({
    drop: function(event, ui) {
        console.log(event.target.id)
    }

then

<div id="container">
    <div id="target_1"></div>
    <div id="target_2"></div>
    <div id="target_3"></div>
</div>

When I drop mover on a div "container" is returned. how do I return instead the lowest child that the item was dropped on?

Rich Tier
  • 9,021
  • 10
  • 48
  • 71

1 Answers1

0

I know the solution to the actual problem: I was trying to drop an element on same div that it came from.

Rich Tier
  • 9,021
  • 10
  • 48
  • 71