title: How to pass value to the filter in DataTable?
body: <p>I need to make custom filter, and I use special function in datatable, and it filter, but when I look the request that i made to filter, the value that is send to filter is always empty.</p>
  
  <p>My code:</p>
  
  <pre><code>jQuery(document).ready(function() {
       var table = jQuery('#example2').DataTable();
          jQuery("#segment").on("change", function(e) {
              var segment = jQuery('#segment').select2('data').text;
              table.draw();
      } );
  </code></pre>
  
  <p>and I use this to push the value, and I dont get anything from here, even in console.log</p>
  
  <pre><code>//filter push
      jQuery.fn.dataTableExt.afnFiltering.push(
          function( oSettings, aData, iDataIndex ) {
  
              //main filter
              var segment = jQuery('#segment').select2('data').text;
              var marke   = jQuery('#model').select2('data').text;
  
              console.log(segment);
              if( aData[1]== segment ||
                  aData[3]== marke )
              {
                  return true;
              }
              return false;
  
          }
      );
  </code></pre>