Buttons - Search
Buttons - Search
Mariusz
Posts: 1Questions: 1Answers: 0
Hello,
I'm trying to write js which will filtr my table, but I cannot do it... and I do know how...
I want for example click on "UP" button (Bootstrap) and then in the column "Status" I want only to have the rows where status = "UP".
<script type="text/javascript">
$(document).ready(function(){
$('#datatable').DataTable( {
dom: 'Bfrtip',
buttons: [
'csv', 'excel'
]
});
});
</script>
This discussion has been closed.
Answers
column().search()
can be used in your event handler to search theStatus
column when you click each button.Kevin