1 $(document).ready(function() {
2 $('#machines thead tr').clone(true).appendTo('#machines thead');
3 $('#machines thead tr:eq(1) th').each(function (i) {
4 var title = $(this).text();
5 $(this).html('<input type="text" placeholder="Search \''+title.toLowerCase()+'\'" />');
6 $('input', this).on( 'keyup change', function () {
7 if (table.column(i).search() !== this.value) {
8 table.column(i).search(this.value).draw();
13 var table = $("#machines").DataTable({
17 lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]]
19 $(".sort").removeAttr("href")