Jquery Drag-Drop (Getting element being dropped into)
Posted
by Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2009-09-19T01:02:54Z
Indexed on
2010/03/31
3:03 UTC
Read the original article
Hit count: 343
I am trying to detect which cell an object is being dropped into.
<table>
<tr>
<td class="weekday">Sun</td>
<td class="weekday">Mon</td>
<td class="weekday">Tue</td>
<td class="weekday">Wed</td>
<td class="weekday">Thu</td>
<td class="weekday">Fri</td>
<td class="weekday">Sat</td>
</tr>
<tr>
<td class="droppable"> </td>
<td class="droppable"> </td>
<td class="droppable"> </td>
<td class="droppable"> </td>
<td class="droppable"> </td>
<td class="droppable"> </td>
<td class="droppable"> </td>
</tr>
</table>
<div class="draggable">Drag Me</div>
on drop, how do i determine which day the div was dropped into. thanks for any help.
© Stack Overflow or respective owner