<!DOCTYPE html>
<html>
  <head>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://cdn.datatables.net/1.11.4/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/select/1.3.4/js/dataTables.select.js"></script>
<script src="https://nightly.datatables.net/searchpanes/js/dataTables.searchPanes.js?uasfhbvikalygysduazxcxzandfliona"></script>
<script src="https://nightly.datatables.net/buttons/js/dataTables.buttons.js"></script>
<script src="https://nightly.datatables.net/searchpanes/js/searchPanes.bootstrap4.js?aiulgsvufsdbsbdbaubsdfvaksuv"></script>
    
<link href="https://nightly.datatables.net/buttons/css/buttons.dataTables.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
<link href="https://cdn.datatables.net/1.11.4/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.datatables.net/select/1.3.4/css/select.dataTables.css" rel="stylesheet" type="text/css" />
<link href="https://nightly.datatables.net/searchpanes/css/searchPanes.dataTables.css?asuvbausbfvkasbfdl" rel="stylesheet" type="text/css" />
<link href="https://nightly.datatables.net/searchpanes/css/searchPanes.bootstrap4.min.css?asduvblaiusbvl" rel="stylesheet" type="text/css" />
    <title>DataTables - JS Bin</title>
    <meta charset=utf-8 />
  </head>
  <body>
    <table id="random" width="100%">
      <thead>
        <tr>
          <th>Random Column</th>
        </tr>
      </thead>
    </table>
  </body>
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
$(document).ready(function() {
  $('table#random').DataTable({
    dom: 'Bt',
    ajax: 'http://showroom.efficient.it/ajax_random.php',
    buttons: [
      {
        extend: 'searchPanes',
        config: {
          cascadePanes: true,
          viewTotal: true
        }
      }
    ],
    columns: [
      {
        data: 'random_column',
        searchPanes: {
          show: true
        }
      }
    ],
    stateSave: true
  });
});
Output

This bin was created anonymously and its free preview time has expired. Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers