Using jQuery UI sortable with HTML tables
You can call sortable
on a <tbody>
instead of on the individual rows.
<table> <tbody> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>3</td> <td>4</td> </tr> <tr> <td>5</td> <td>6</td> </tr> </tbody> </table><script> $('tbody').sortable();</script>