The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Templar (1) [Avatar] Offline
#1
<div>I have next code </div>
<pre>
<table border="1">
<tbody>
<tr id="dragtable">
<td id="categories">
<ul>
<li id="item:1" class="draggable">Item 1</li>
<li id="item:2" class="draggable">Item 2</li>
<li id="item:3" class="draggable">Item 3</li>
</ul>
</td>
<td id="vendors">
<ul>
<li id="item:4" class="draggable">Item 4</li>
<li id="item:5" class="draggable">Item 5</li>
</ul>
</td>
</tr>
</tbody>
</table>
</pre>
<div>

Set td(categories) dropable, items of list for this td set draggable (class="draggable", etc)


Set td(vendors) dropable, items of list for this td set draggable also.


I use revert: 'failure' option when create Draggable object.



Items of list of vendors-td wokr normaly (if they drag to dropable area they stay there), but if I drag category items to vendors area all this items return back category area.


</div>