0

I want to multi-select the rows in bootstrap table and re-order them using drag and drop option. Any suggestions or links to achieve this would be helpful..

4

1 回答 1

-1

使用数据表

示例js见下文

$(document).ready(function() {
var table = $('#example').DataTable();

$('#example tbody').on( 'click', 'tr', function () {
    $(this).toggleClass('selected');
} );

$('#button').click( function () {
    alert( table.rows('.selected').data().length +' row(s) selected' );
} );
} );
于 2015-08-03T19:24:25.583 回答