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(); 

demo

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(); 

demo


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -