DataTable coulmn filterin

DataTable coulmn filterin

ZeevZeev Posts: 1Questions: 0Answers: 0

Hello I'm trying to add Individual column searching (select inputs) to my datatables but I'm having many problems, can someone help me?

Reference : https://datatables.net/examples/api/multi_filter_select.html

This is my js code

`
function list()
{

      tabla=$('#tbassi').dataTable(
   {
    "aProcessing": true,
     "aServerSide": true,
      buttons: [
           {
                 extend:    'copyHtml5',
                 text:      '<i class="fa fa-files-o"></i>',
                 titleAttr: 'Copy'
           },
           {
                 extend:    'excelHtml5',
                 text:      '<i class="fa fa-file-excel-o"></i>',
                 titleAttr: 'Excel'
           },
           {
                  extend:    'csvHtml5',
                  text:      '<i class="fa fa-file-text-o"></i>',
                  titleAttr: 'CSV'
            },
           {
                  extend:    'pdfHtml5',
                  text:      '<i class="fa fa-file-pdf-o"></i>',
                  titleAttr: 'PDF'
             },

             {
               extend: 'colvis',
               text: '<i class="fa fa-bars"> Filter Columns </i>',
               collectionLayout: 'fixed two-column'          

        }

    ],
"ajax":
    {
      url: '../ajax/switch.php?op=list',
      type : "get",
      dataType : "json",            
      error: function(e){
        console.log(e.responseText);  
      }
    },
"bDestroy": true,
"iDisplayLength": 10,
  "order": [[ 0, "desc" ]]


}).DataTable();
     }

`

This discussion has been closed.