【发布时间】:2015-09-01 08:45:20
【问题描述】:
我正在尝试通过添加复选框列来修改 jQuery 数据表。我的表由多个页面组成。我想添加一个全选复选框,当我单击它时,它需要选择所有页面中的所有复选框。我的问题是,目前它只选择当前页面上的复选框。
这是我的html代码:
<div id="results_table">
<h3>Results</h3>
<div>
<h5 style="float:left;">Results - Table</h5>
<button id="download-json" class="btn" style="float:right;"><i class="icon-download"></i> Get JSON</button>
<button id="download-csv" class="btn" style="float:right;"><i class="icon-download"></i> Get CSV</button>
</div>
<br>
<table id="example" class="display" width="100%"></table>
<div id="results_container">
<p>Execute a query first!</p>
</div>
</div>
【问题讨论】:
标签: javascript jquery checkbox