Individual INPUTS search
Individual INPUTS search
seb69400
Posts: 2Questions: 1Answers: 0
Hello,
I am French and I have a problem with my datatable.
I have some columns on my datatable, and I want to be able to make a search with external inputs.
So I have 5 columns, 5 inputs type of text on a different div than datatable.
How can I make a filter or a search for each inputs to an individidual column ?
ex : an intput can make a filter or search only for the column 'name', or by clicking a button ?
I see a lots of example and worked for me....
This discussion has been closed.
Answers
for example, with an INPUT with id="nom", this doesn't work :
$(document).ready(function() {
$('#nom').change(function (e) {
dataTable.search();
dataTable.draw();
});
var dataTable = $('#employee-grid').DataTable( {
searching:false,
bFilter:true,
"sPaginationType": "full_numbers",
column().search()
can be used to search individual columns. There is an example available here.Allan