Bootstrap datatable search function

天涯浪子 提交于 2019-12-12 02:08:54

问题


I want to searching multicolumn value on the bootstrap table. There is any code for this

For example ;

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

I want to searching like this but I could not find anything. I can post the data input on the server and write SQL query about LİKE . But it does not specific . Do have any example about it ?

Have a good day :)

My page screenshot

My table source code

<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>

回答1:


You can make use of bootgrid as plugin for bootstrap.

http://www.jquery-bootgrid.com/Examples



来源:https://stackoverflow.com/questions/39204792/bootstrap-datatable-search-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!