Drag & Drop question

Drag & Drop question

Hi all,
I'm new in this forum

I learned jquery from 2 week and i'm fairly inexperienced.
My site is build with asp.net mvc and use jquery 1.4.1

this is the code

...
<% foreach (var item in Model.Amici)
       {%>
<div id="amico_<%= item.Id %>" idAmico="<%= item.Id %>">
        <%= item.Name %>
</div>
<%  } %>
....

<script>
    $(function() {
        $("div[id^='amico_']").draggable({ revert: "valid" });
        $("#droppable").droppable({
            activeClass: "ui-state-hover",
            hoverClass: "ui-state-active",
            drop: function(event, ui) {
                 var index = $(".ui-draggable").attr('idAmico');
                $(this)
.addClass("ui-state-highlight")
.find("p")
.html("id = " + index);
            }
        });
    });
</script>

the problem is that id attribute's value is always 1 (index variable) while are 1 and 2. (red row)
where am i wrong?

thanks so much for your replies
Alberto