【发布时间】:2014-12-31 09:57:02
【问题描述】:
我有一个动态填充的分页表。我在其中一列中使用“引导多选复选框”选项。这个插件在表格的第一页工作正常,但是当我尝试导航到分页表格的下一页时,“boostrap 多选下拉复选框选项变成了一个普通的多选选项,没有复选框。搜索选项也不起作用。有什么这里不见了?
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/jquery.dataTables.min.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap-multiselect.css" type="text/css">
<link rel="stylesheet" href="css/dataTables.bootstrap.css" type="text/css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="js/searchDataTable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.applicationNameSelectClass').multiselect({
includeSelectAllOption : true ,
enableFiltering: true,
});
});
</script>
<script>
$(document).ready(function() {
$('#dbResultsTable').dataTable();
} );
</script>
<form id="form">
<table border="1" id="dbResultsTable" class="table table-striped" >
<!-- Dynamically populated table -->
</table>
<input type="submit" id="submitId"/>
</form>
【问题讨论】:
标签: jquery twitter-bootstrap checkbox jquery-datatables bootstrap-multiselect