Hi David,
I am looking for similar filtering as @ankit described. I am using example from here https://datatables.net/examples/plug-ins/range_filtering.html which, when line below is used I am getting two search fields, table layout is messed up a bit (attached image)
var table = $('#DataTable1').DataTable();
I want to filter column "Grupa" and so far only way is manipulating input search field. Code below does fill the search input field(s) but filtered table does not return any matched data.
Here is full example:
$(document).ready(function() {
var table = $('#DataTable1').DataTable();
// Event listener to the two range filtering inputs to redraw on input
$('#nadgrupa').change( function() {
var odabrano = $('#nadgrupa').val();
$("#DataTable1_filter > label").find('input').val(odabrano);
table.draw();
} );
} );
I would like to use drop down to filter only one column, where search can be used as normal for all columns. This what I am trying to make with example above is work-around.
BTW: #nadgrupa is ID of drop down select for different Groups of products.