Server-side search column same value in all input text
Server-side search column same value in all input text
hi,
i'm using search with individual column in server side (ASP.NET MVC ), however all the input text for each column are of the same value .
javascript:
$('#Pagadores tfoot th').each(function () {
var title = $(this).text();
$(this).html('<input type="text" placeholder="Pesquisar..." class="form-control ms-clear"/>');
});
I have 3 input text in DataTable and all of them return de same value entered.
Can someone help me?
Sorry, my english is no good.
Answers
this solved.
i changed the code:
table.columns().every(function () {
by:
initComplete: function() {
var api = this.api();
in the datatable parameters.