Код: Выделить всё
$(document).ready(function() {
// Setup - add a text input to each footer cell
$('.example tfoot th').each( function () {
var title = $(this).text();
$(this).html( '');
} );
// DataTable
$('.example').each(function(){
var table = $(this).DataTable();
table.columns().every( function () {
var that = this;
$( 'input', this.footer() ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that.search( this.value ).draw();
}
});
});
});
$('.example tfoot th').appendTo('.example thead'); //Problem
} );
Код: Выделить всё
$('.example').each(function()
Подробнее здесь: https://stackoverflow.com/questions/548 ... -for-multi