I have a Bootstrap DataTable with 3 columns:
- In column "Id" each cell has a plain
<label .../>html element with string content - In column "Name" each cell contains an
<input .../>html element with respective values - In column "Job" each cell contains a
<select options .../>html element with respective values
Using the default Filter object, I can filter the entire DataTable using the "Id" labels.
However, I cannot filter the DataTable using values from the <select options .../> or from the <input .../> of each cell from the "Name" and "Job" columns.
This is a piece of the datatable.
Do you have any suggestions or jquery code samples I could follow? Thank you.
I am not using serverSide option in the implementation.
Here is the datatable:
$('#tbl').DataTable({
"iDisplayLength": 50,
"order": [[ 0, "asc" ]],
"columnDefs": [{
"sortable": false,
"searchable" : true,
"render" : function(data, type, full) { return data;},
"targets": [1, 2]
}]
});
