I want to add a filter to only one column.
The script that I made is here.
I want to filter the status column with a dropdown, where the status is "Done", "Rejected", "In Progress".
The data that appears is based on the status selected in the dropdown.
Answers
Hi @lutfi489 ,
This example looks like what you're after,
Cheers,
Colin
Hi @colin,
For the example that you gave me I tried, but it displays a lot of input dropdowns. What if I only want to display one column dropdown?
I use this script:
$(document).ready(function() {
$('#example').DataTable({
filterDropDown: {
columns: [
idx: 5
]
}
} );
} );
but it doesn't work
filterDropDown
isn't anything we support. You would just modify that example I posted above, and the simplest change would be instead ofchange it to be
Colin