language file and individual column searching
language file and individual column searching
flose
Posts: 1Questions: 0Answers: 0
Hello,
Sorry for my english.
I wish to use "Language file" (in French) and "Individual column searching (text inputs)".
When I instal "searching" alone --> OK
When I instal "language" alone --> OK
But when I instal "language" and after "searching", the texte is in french but the research don't work.
// My code :
$(document).ready(function()
{ $('#example').DataTable( {
"language": {
"url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/French.json" }
} );
// Setup - add a text input to each footer cell
$('#example tfoot th').each( function () {
var title = $('#example thead th').eq( $(this).index() ).text();
$(this).html( '<input type="text" placeholder="Search '+title+'" />' );
} );
// DataTable
var table = $('#example').DataTable();
// Apply the search
table.columns().every( function () {
var that = this;
$( 'input', this.footer() ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that
.search( this.value )
.draw();
}
} );
} );
} );
Where is the problem ?
Please, help me
This discussion has been closed.
Replies
I have the same problem with Italian language. Any ideas?!?
My code: