I have an unorderd list with many items, like this:
                <div class="itemContent">
                        <ul>
                              <li class="9" id="2053">item 9</li>
                              <li class="19" id="2044">item 19</li>
                        </ul>
                 </div>
I want to make it possible to drag and drop an item to another DIV.
For that, I used jquery UI with the droppable en draggable extensions.
Everything works till now, except from the fact that I can't get the
ID of the draggable list-item.

$(ui.draggable.element).attr("id") doesn't work, it gives 'undefined'.
If I use $(ui.draggable.element).text I get the text of the whole
page, so something is going wrong.

Can someone help me out?

Reply via email to