multiple droppable

Ich habe mehrere droppable divs (die alle die gleiche Größe haben) und eine draggable div. Das ziehbare Div ist dreimal so groß wie ein droppbares. Wenn ich das draggable div auf die droppables divs ziehe, möchte ich herausfinden, welches droppable betroffen ist.

Mein Code sieht so aus:

$(function () {

    $(".draggable").draggable({
        drag: function (event, ui) { }

    });
    $(".droppable").droppable({
        drop: function (event, ui) {
           alert(this.id);
        }
    });

}); 

the html

<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div0" class="droppable">
    drop in me1!
</div>   
<div style="height:100px; width:200px; border-bottom:1px solid red;"  id="Div1" class="droppable">
    drop in me2!
</div>  
<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div2" class="droppable">
    drop in me2!
</div>  
<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div3" class="droppable">
    drop in me2!
</div>  
<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div4" class="droppable">
    drop in me2!
</div>  
<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div5" class="droppable">
    drop in me2!
</div>  
<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div6" class="droppable">
    drop in me2!
</div>  
<div style="height:100px; width:200px; border-bottom:1px solid red; " id="Div7" class="droppable">
    drop in me2!
</div>


<div class="draggable" id="drag" style="height:300px; width:50px; border:1px solid black;"><span>Drag</span></div>

Aber meine Warnung zeigt nur die erste, die mein verschiebbares div (Div0) trifft, wie kann ich die fehlende (Div1 und Div2) finden, die auch betroffen ist ??

Hier ist ein Typ mit dem gleichen Problem:http: //forum.jquery.com/topic/drop-onto-multiple-droppable-elements-at-onc

Antworten auf die Frage(2)

Ihre Antwort auf die Frage