javascript - How do you use jquery sortable to sort table cells in all the table's rows? -
i wanna make sortable table , using jquery sortable can either sort rows in tables or cells in row, can't move cell between rows. how can that?
for example. in here: http://jsfiddle.net/dado_eyad/mkafe/2/
i wanna move second row: 2 place of first row: 1
wrap < tr >'s in < tbody > , change code to:
$("table tbody tr").sortable({ items: 'td', }).disableselection(); you have specify container contains elements want sortable not actual elements.
i wanna move second row: 2 place of first row: 1
$("table tbody").sortable({ items: 'tr', }).disableselection();
Comments
Post a Comment