I have a very simple HTML table, to which jQuery sortable is applied so that user can reorder rows by drag’n drop:
http://jsfiddle.net/umRJr/201/
What I’m trying to do without success is have this same table sortable by columns too. That is, to allow user to drag’n drop columns too.
How can this be done?
Any ideas appreciated, whether with js, jQuery or just conceptual.
I’ve found a super-simple, pure-js library that does just that:
http://www.danvk.org/wp/dragtable/
It’s pure javascript and doesn’t need jQuery.