引导表中的多选行

问题描述 投票:0回答:1

我想多选择bootstrap表中的行,并使用拖放选项重新排序它们。任何建议或链接来实现这一点将有所帮助..

twitter-bootstrap-3 bootstrap-table
1个回答
0
投票

使用datatables

示例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' );
} );
} );
© www.soinside.com 2019 - 2024. All rights reserved.