nested sortable table rows jquery
Posted
by FLY
on Stack Overflow
See other posts from Stack Overflow
or by FLY
Published on 2010-03-12T15:36:10Z
Indexed on
2010/03/15
10:09 UTC
Read the original article
Hit count: 404
Hi,
I am trying to sort rows of a table, and put them as 'child' elements of a table row
I found this: http://code.google.com/p/nestedsortables/ this works with ul li lists, but i want to build it for a table.
<table>
<thead>
<th>tablehead</th>
</thead>
<tbody>
<tr><td>somevalue</td></tr>
<tr><td>somevalue2</td></tr>
</tbody>
</table>
so yeah you can use jquery.sortable() and sort the rows, but i want 'somevalue' to be become a child element of 'somevalue2' if you drag 'somevalue' over 'somevalue2'
I don't know if it is posible with a table.
can anyone help me?
Thnx!
© Stack Overflow or respective owner