Home » Jquery » jquery – How to add Custom Field in bootstrapTable-Exceptionshub

jquery – How to add Custom Field in bootstrapTable-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I would like to know if there’s the possibilite to add a new custom field nearby the existing Search Field (“PESQUISAR”) ? I saw many examples to add a new custom field bellow tr th, but I would like it to be in the same direction “Pesquisar” Field

enter image description here

Updating

 <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>
How to&Answer: