I'm trying to use datatable with the search function. But I don't know how. Please help. here is my code in jQuery.
var oTable = $('#table').DataTable({
"dom": "Bfrtip",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": '<?php echo site_url('members/viewall'); ?>',
"sPaginationType": "full_numbers",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax
({
'dataType': 'json',
'type': 'POST',
'url': sSource,
'data': aoData,
'success': fnCallback
});
}
});