I want to output some data from the database in a HTML table, and I want the user to be able to reorder table rows. To achieve this, I used jQuery UI sortable, thus:
You can call sortable on a instead of on the individual rows. 1 2 3 4 5 6 $(function() { $( "tbody" ).sortable(); }); table { border-spacing: collapse; border-spacing: 0; } td { width: 50px; height: 25px; border: 1px solid black; } 1 2 3 4 5 6 7 8 9 10 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
sortable
instead of on the individual rows. 1 2 3 4 5 6 $(function() { $( "tbody" ).sortable(); }); table { border-spacing: collapse; border-spacing: 0; } td { width: 50px; height: 25px; border: 1px solid black; } 1 2 3 4 5 6 7 8 9 10 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
1 2 3 4 5 6
$(function() { $( "tbody" ).sortable(); });
table { border-spacing: collapse; border-spacing: 0; } td { width: 50px; height: 25px; border: 1px solid black; }
1 2 3 4 5 6 7 8 9 10