YUI: Drag Drop onto Nested Targets

Basically, all I am doing is setting a var (lastTarget) onDragOver to the element that we are over. Then in the onDragDrop function, I am checking to see if the id that is returned matches the id that is stored in lastTarget. If it is, display the text in the box below.

  • Test 1
  • Test 2
    • Test 2-1
    • Test 2-2
    • Test 2-3
    • Test 2-4
  • Test 3
    • Test 3-1
    • Test 3-2
    • Test 3-3
    • Test 3-4
  • Test 4
Drop me on the list