I am making a UI which consists of two different table
elements in two different div
. Now I have a requirement which means that I can either move one td
element form one table
to another td
element or they both can be sortable. Is it possible to do that? If so then what plugin or method could I use?
This is the code:
<div id="cool" draggable="true">
<table>
<tbody>
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>lunch</th>
<th>5</th>
<th>6</th>
<th>7</th>
<th>8</th>
</tr>
<tr class="sortable list">
<td draggable="true" style="background-color:green">monday</td>
<td draggable="true" style="background-color:red">eng</td>
<td draggable="true" style="background-color:blue">hindi</td>
<td draggable="true" style="background-color:yellow">maths</td>
<td draggable="true" style="background-color:red">eng</td>
<td draggable="true" style="background-color:blue">hindi</td>
<td draggable="true" style="background-color:yellow">maths</td>
<td draggable="true" style="background-color:red">eng</td>
<td draggable="true" style="background-color:blue">hindi</td>
<td draggable="true" style="background-color:yellow">maths</td>
</tr>
</tbody>
</table>
</div>
and the second div is
<div id="fool">
<table>
<tr>
<td draggable="true" style="background-color:blue">english</td>
</tr>
<tr>
<td draggable="true" style="background-color:yellow">hindi</td>
</tr>
<tr>
<td draggable="true" style="background-color:green">maths</td>
</tr>
<tr>
<td draggable="true" style="background-color:white">physics</td>
</tr>
</table>
</div>
` elements instead of tables to do it. You can create sortable lists (yes, you can also use tables) with jQuery-UI and you can connect multiple lists as well. – Lionel Ritchie the Manatee Dec 28 '15 at 15:31