<!DOCTYPE html>
<html>
<link href="https://cdn.datatables.net/1.13.8/css/jquery.dataTables.css" rel="stylesheet">
<link href="https://cdn.datatables.net/responsive/2.5.0/css/responsive.dataTables.css" rel="stylesheet">
 
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
<script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/responsive/2.5.0/js/dataTables.responsive.js"></script>
    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <body>
    <div class="container">
      <table id="example" class="table table-bordered" width="100%">
        <thead>          
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Extn</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </thead>
        <tbody>
          
        </tbody>
      </table>
    </div>
  </body>
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
td.dataTables_empty {
  height: 200px;
}
 
var table = $("#example").DataTable({
  ajax: "/ajax/text/arrays.txt",
  processing: true, 
                    bSortClasses: false,
                    bSortMulti: false,
                    bSort: true,
                    bFilter:true,
                    bDeferRender: false,
                    processing:true,
                    responsive: true,
                    dom: '<"top"if>rt<"bottom"l<"Pagination"pbB>><"clear">',
                    stripeClasses: ['odd-row', 'even-row'],
                    lengthMenu: [20, 50, 100],
  initComplete: function () {
    $('#example_paginate').detach().appendTo("#destination");
  }
});
setTimeout(function () {
  $('#example_processing').css('display', 'block');
}, 1000);
1 warning
Line 10: Duplicate key 'processing'.
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers