How to get the child of an element being dragged with jQuery UI
- by Walden
I have the following html:
<div id="gallery">
<ul>
<li>
<a href="url I want to get">link</a>
</li>
</ul>
</div>
and some jQuery that allows it to be dropped on another div:
$trash.droppable({
accept: '#gallery > li',
activeClass: 'ui-state-highlight',
…