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

Filed under:
|
|
|

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">&nbsp;</td>
<td class="droppable">&nbsp;</td>
<td class="droppable">&nbsp;</td>
<td class="droppable">&nbsp;</td>
<td class="droppable">&nbsp;</td>
<td class="droppable">&nbsp;</td>
<td class="droppable">&nbsp;</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

Related posts about jQuery

Related posts about drag-and-drop