javascript - Change table columns order -


I need to dynamically change the order in the column / html / js, you can tell me how ? If you only need to move a column without any fancy drag-drop animation, thank you all!

  & lt; Script type = "text / javascript" & gt; $ (Function () {jQuery} ($ ("table tr"), function () {$ (this). Children (": eq (1)"). (After $ (This) children (": eq (0) "));});}); & Lt; / Script & gt;   

Essentially the concept works by changing the numbers

It seems that it is not really possible to write it as a liner is. The selector also includes the TD, even with the row selector, it seems to stop every TD on a different index.

A jQuery grid plugin should do the trick otherwise otherwise I have no experience with such plugins.

Comments