table.columns is not a function ... Got this Error

table.columns is not a function ... Got this Error

yagnik_vishyagnik_vish Posts: 1Questions: 1Answers: 0
edited June 2014 in Free community support
$(document).ready(function () { $('#example tfoot th').each(function () { var title = $('#example thead th').eq($(this).index()).text(); $(this).html(''); }); var table = $('#example').DataTable(); table.columns().eq(0).each(function (colIdx) { $('input', table.column(colIdx).footer()).on('keyup change', function () { table .column(colIdx) .search(this.value) .draw(); }); }); });
This discussion has been closed.