<!DOCTYPE html>
<html>
  <head>
    <title>DataTables - JS Bin</title>
    <meta charset=utf-8 />
    <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="https://nightly.datatables.net/js/jquery.dataTables.js"></script>
    <script src="https://nightly.datatables.net/searchpanes/js/dataTables.searchPanes.js?tqawvucxy"></script>
    <script src="https://cdn.datatables.net/select/1.3.4/js/dataTables.select.js"></script>
    <link href="https://nightly.datatables.net/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
    <link href="https://nightly.datatables.net/searchpanes/css/searchPanes.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" />
  </head>
  <body>
    <table id="example" class="display" width="100%">
      <thead>
        <tr>
          <th>Name</th>
          <th>Location</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() {
  var table = $('#example').DataTable({
    dom: 'Plfrtip',
    stateSave: true,
    stateDuration: 0,
    ajax: 'http://showroom.efficient.it/ajax.php',
    columns: [
      {
        data: 'name'
      },
      {
        data: 'location'
      }
    ],
  });
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers