Searching in datatables and draw it
Searching in datatables and draw it
4usolution
Posts: 10Questions: 4Answers: 0
Hi, i try do add a search-function, but it wont work. Maybe i dont understand it in the right way - what i do wrong in this code?
table.ext.search.push(
function( settings, data, dataIndex ) {
var min = parseInt( this.value , 10 );
var max = parseInt( this.value , 10 );
var resdata = parseFloat( data[1] ) || 0; // use data for the datatable column
if ( ( isNaN( min ) && isNaN( max ) ) ||
( isNaN( min ) && resdata <= max ) ||
( min <= resdata && isNaN( max ) ) ||
( min <= resdata && resdatae <= max ) )
{
return true;
}
return false;
}
).draw();
This discussion has been closed.