javascript - Bootstrap数据表搜索功能

标签 javascript jquery twitter-bootstrap datatable bootstrap-table

我想在 Bootstrap 表上搜索多列值。有这方面的代码

例如;

https://datatables.net/examples/plug-ins/range_filtering.html

我想这样搜索,但找不到任何东西。我可以将数据输入发布到服务器上并编写有关 LIKE 的 SQL 查询。但它并没有具体说明。有相关例子吗?

祝你有美好的一天:)

我的页面截图 enter image description here

我的表格源代码

<div class="table-responsive " style="height: 400px; overflow-y: auto;">
              <table id="tablo_icin2" class="table table-bordered table-hover table-striped">

                <thead>
                <tr>
                  <th>
                    <span class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></span>
                  </th>
                  <th>User Name</th>
                  <th>Password</th>
                </tr>
                </thead>

                <tr>
                <td></th>
                <td>Mark</th>
                <td>123</th>
                </tr>

              </table>
             </div>

最佳答案

您可以使用 bootgrid 作为 bootstrap 的插件。

enter image description here http://www.jquery-bootgrid.com/Examples

关于javascript - Bootstrap数据表搜索功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39204792/

相关文章:

jquery - 使用 jquery 识别特定元素的位置

javascript - 更新到 Bootstrap 3.2.0 - 导航标题对齐之后变得不对齐

html - 如何使 Bootstrap 下拉菜单切换子项?

javascript - 如何使用不同的选择器简化重复的 jQuery 代码

javascript - 仅使用一个按钮的 AJAX 脚本

javascript - 如果将关系指定为链接,则防止 ember-data 从服务器重新加载关系

javascript - 如何设置指定日期bootstrap datepicker?

javascript - 如何使用 jQuery 获取第一个元素的文本

javascript - 使用 jquery 识别悬停元素而不使用 id?

javascript - Bootstrap 模式中的innerHTML