initialize a datatable with search but only filter on a single column, the table contains 7 columns
initialize a datatable with search but only filter on a single column, the table contains 7 columns
Hello, thanks for your quick and effective response.
I have another query.
initialize a datatable with search but only filter on a single column, the table contains 7 columns I only want it to filter column 5
I want to initialize a filtered datatable specifically a single column.
I use search but it does the filtering including other columns.
I want it with column 5
<script>
jQuery(document).ready(function() {
var table = $('.jet-dynamic-table').DataTable( {
dom: '<"top"i>rt<"bottom"flp><"clear">',
language: {
},
order: [[5, 'Dasc']],
"paging": false,
"info": false,
search: {
search: 'CBA-999'
}
} );
});
i want it to filter or search on a single column when initializing the datatable
thanks
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
Answers
Try using
searchCols
.Kevin