1
I am using one of the functions of Datatables that is interval searching, but this type of search only accepts integer numbers. I would like to make this survey accept sample date formats 10/10/2019. I don’t know where it starts https://datatables.net/examples/plug-ins/range_filtering.html
$('#min, #max').keyup(function () {
table.draw();
});
$.fn.dataTable.ext.search.push(
function (settings, data, dataIndex) {
var min = parseInt($('#min').val(), 10);
var max = parseInt($('#max').val(), 10);
var age = parseFloat(data[0]) || 0; // use data for the age column
if ((isNaN(min) && isNaN(max)) ||
(isNaN(min) && age <= max) ||
(min <= age && isNaN(max)) ||
(min <= age && age <= max)) {
return true;
}
return false;
}
);
Excuse the question, but want to filter some information of a comic using date period ? I could not understand very well your need.
– Diêgo Correia de Andrade