Problems with Jquery Table!

0

See the code below:

$(document).ready(function() {
  $('#table_busca').DataTable();
});
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script><form><tableclass="table table-striped" id="table_busca">
    <thead>
      <tr>
        <th>Data</th>
        <th>Título</th>
        <th>Fontes</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>09/02/2018</td>
        <td>CONTÁBIL - Regulamentação da RFB sobre o reconhecimento contábil de receitas</td>
        <td>Jota Info</td>
      </tr>

      <tr>
        <td></td>
        <td></td>
        <td></td>
      </tr>

    </tbody>
  </table>
</form>

I'm following this video below:

Tip of the Week # 4 - Search, Filtering, Paging, and Quick Styling of Tables with DataTables

What corresponds to this page:

DataTables CDN

But Jquery is not working, someone could take a look to see if anyone finds something wrong.

    
asked by anonymous 12.02.2018 / 12:36

1 answer

0

The problem was only to organize the imports correctly

<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
    
12.02.2018 / 16:41