如何在现有的搜索字段("PESQUISAR")附近添加新的自定义字段?我看到了许多例子来添加一个新的自定义字段下面的tr th,但我希望它是在相同的方向"Pesquisar“字段

更新
 <table id="table1" data-toggle="table" data-pagination=true data-sortable="true" data-search=true data-locale="pt-BR">
    <thead>
      <tr>
        <th data-sortable="true">ID</th>
        <th data-sortable="true">NOME</th>
        <th data-sortable="true">SERVICO</th>
        <th data-sortable="true">CIDADE</th>
        <th data-sortable="true">BAIRRO</th>
        <th data-sortable="true">RUA</th>
      </tr>
    </thead>
    <tbody>
       //Content
    </tbody>
</table>
<script type="text/javascript">
 $(document).ready(function(){
   $('#table1').bootstrapTable({
     locale: 'pt-BR'
  });
 });
</script>发布于 2020-02-27 00:00:09
您应该看看工具栏表选项:https://bootstrap-table.com/docs/api/table-options/#toolbar
您可以为bootstrap-table指定一个DOM元素,以便在创建时附加到它自己的工具栏中。
https://stackoverflow.com/questions/60233185
复制相似问题