$('#dateMax').change( function() { console.log(this.value); filesDataTable.DataTable().draw(); } );