I want to rearrange an existing dynamic table with jquery or pure javascript. I already found this post on stackoverflow that is exactly what I am looking for but the given solution doesn't work for me.
I have some Problems with this Script.
1.) There is an unwanted <tr></tr> element at the top and there will be one more with every code execution.
2.) I can not use this code on just one table. If I use $('#example tbody') and add an id to the table it disappears.
3.) It's not working on the Internet Explorer.
Maybe someone can help